@buerokratt-ria/common-gui-components 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
All changes to this project will be documented in this file.
|
|
3
3
|
## Template [MajorVersion.MediterraneanVersion.MinorVersion] - DD-MM-YYYY
|
|
4
4
|
|
|
5
|
+
## [0.0.6] - 11-03-2025
|
|
6
|
+
|
|
7
|
+
- Enhanced Markdownify List Rendering
|
|
8
|
+
|
|
5
9
|
## [0.0.5] - 28-02-2025
|
|
6
10
|
|
|
7
11
|
- Added Hex conversion
|
package/package.json
CHANGED
|
@@ -41,7 +41,7 @@ const Markdownify: React.FC<MarkdownifyProps> = ({ message }) => (
|
|
|
41
41
|
disableParsingRawHTML: true,
|
|
42
42
|
}}
|
|
43
43
|
>
|
|
44
|
-
{message?.replace(/&#x([0-9A-Fa-f]+);/g, (_, hex) => { return String.fromCharCode(parseInt(hex, 16)); }) ?? ""}
|
|
44
|
+
{message?.replace(/&#x([0-9A-Fa-f]+);/g, (_, hex) => { return String.fromCharCode(parseInt(hex, 16)); }).replace(/(?<=\n)\d+\.\s/g, "\n\n$&") ?? ""}
|
|
45
45
|
</Markdown>
|
|
46
46
|
</div>
|
|
47
47
|
);
|