@affanhamid/markdown-renderer 2.3.6 → 2.4.2

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/index.cjs CHANGED
@@ -933,7 +933,7 @@ function renderMarkdownToHtml(markdown, options) {
933
933
  parts.push(`<p>${content}</p>`);
934
934
  i++;
935
935
  }
936
- return `<div class="prose max-w-none">${parts.join("")}</div>`;
936
+ return `<style>.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before,.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{content:none}</style><div class="prose max-w-none">${parts.join("")}</div>`;
937
937
  }
938
938
  var mermaidInstance = null;
939
939
  var MarkdownRenderer = ({
package/dist/index.js CHANGED
@@ -894,7 +894,7 @@ function renderMarkdownToHtml(markdown, options) {
894
894
  parts.push(`<p>${content}</p>`);
895
895
  i++;
896
896
  }
897
- return `<div class="prose max-w-none">${parts.join("")}</div>`;
897
+ return `<style>.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before,.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after{content:none}</style><div class="prose max-w-none">${parts.join("")}</div>`;
898
898
  }
899
899
  var mermaidInstance = null;
900
900
  var MarkdownRenderer = ({
package/package.json CHANGED
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "name": "@affanhamid/markdown-renderer",
3
- "version": "2.3.6",
3
+ "version": "2.4.2",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/affanhamid/markdown-renderer"
7
+ },
4
8
  "description": "Custom markdown renderer with KaTeX support",
5
9
  "type": "module",
6
10
  "main": "dist/index.cjs",