@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.js
CHANGED
|
@@ -11441,12 +11441,12 @@ function htmlToMarkdown(html) {
|
|
|
11441
11441
|
md = md.replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi, (match, tagName) => {
|
|
11442
11442
|
return STANDARD_HTML_TAGS.has(tagName.toLowerCase()) ? "" : match;
|
|
11443
11443
|
});
|
|
11444
|
-
md = md.replace(/&/g, "&");
|
|
11445
11444
|
md = md.replace(/</g, "<");
|
|
11446
11445
|
md = md.replace(/>/g, ">");
|
|
11447
11446
|
md = md.replace(/"/g, '"');
|
|
11448
11447
|
md = md.replace(/'/g, "'");
|
|
11449
11448
|
md = md.replace(/ /g, " ");
|
|
11449
|
+
md = md.replace(/&/g, "&");
|
|
11450
11450
|
md = md.replace(/\n{3,}/g, "\n\n");
|
|
11451
11451
|
md = md.trim();
|
|
11452
11452
|
return md;
|