@happeouikit/content-renderer 3.2.26 → 3.2.27

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/dist/utils.d.ts CHANGED
@@ -24,4 +24,11 @@ declare const loadCodeFont: () => void;
24
24
  declare const getNearestRelativeParent: (el: HTMLElement) => HTMLElement | null;
25
25
  declare const removeSpecialCharacters: (str?: string) => string;
26
26
  declare const replacePTagsInCodeBlocks: (html?: string) => string;
27
- export { toHtml, toSafeText, loadCodeFont, decodeHtmlEntities, getNearestRelativeParent, removeSpecialCharacters, addColorSpanAfterColorCodes, replacePTagsInCodeBlocks, };
27
+ /**
28
+ * Escapes standalone < characters that aren't part of valid HTML tags
29
+ * This prevents content like "< 50db" from breaking the rendering
30
+ * @param html The HTML string to process
31
+ * @returns The processed HTML with standalone < characters escaped
32
+ */
33
+ declare const escapeInvalidTagStarts: (html: string) => string;
34
+ export { toHtml, toSafeText, loadCodeFont, decodeHtmlEntities, getNearestRelativeParent, removeSpecialCharacters, addColorSpanAfterColorCodes, replacePTagsInCodeBlocks, escapeInvalidTagStarts, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happeouikit/content-renderer",
3
- "version": "3.2.26",
3
+ "version": "3.2.27",
4
4
  "description": "Rendering html and markdown content",
5
5
  "type": "module",
6
6
  "jsnext:main": "dist/index.es.js",
@@ -39,5 +39,5 @@
39
39
  "devDependencies": {
40
40
  "@types/loadjs": "^4.0.4"
41
41
  },
42
- "gitHead": "93af5dfdef9851b04a2a6e11e07b8a62082c3d6c"
42
+ "gitHead": "0db2851263b4cd9f097582d3cdeec30d72fbb1e9"
43
43
  }