@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buerokratt-ria/common-gui-components",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "Common GUI components and pre defined templates.",
5
5
  "main": "index.ts",
6
6
  "author": "ExiRai",
@@ -433,7 +433,7 @@
433
433
  .reset ul,
434
434
  .reset ol {
435
435
  margin: 0 0 1rem;
436
- padding-left: 1.5rem;
436
+ padding-left: 2.5rem;
437
437
  }
438
438
 
439
439
  .reset li {
@@ -444,4 +444,4 @@
444
444
  .reset a {
445
445
  text-decoration: none;
446
446
  color: inherit;
447
- }
447
+ }
@@ -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
  );