@particle-academy/react-fancy 4.8.0 → 4.8.1
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -11443,12 +11443,12 @@ function htmlToMarkdown(html) {
|
|
|
11443
11443
|
md = md.replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi, (match, tagName) => {
|
|
11444
11444
|
return STANDARD_HTML_TAGS.has(tagName.toLowerCase()) ? "" : match;
|
|
11445
11445
|
});
|
|
11446
|
-
md = md.replace(/&/g, "&");
|
|
11447
11446
|
md = md.replace(/</g, "<");
|
|
11448
11447
|
md = md.replace(/>/g, ">");
|
|
11449
11448
|
md = md.replace(/"/g, '"');
|
|
11450
11449
|
md = md.replace(/'/g, "'");
|
|
11451
11450
|
md = md.replace(/ /g, " ");
|
|
11451
|
+
md = md.replace(/&/g, "&");
|
|
11452
11452
|
md = md.replace(/\n{3,}/g, "\n\n");
|
|
11453
11453
|
md = md.trim();
|
|
11454
11454
|
return md;
|