@readme/markdown 7.12.0 → 7.12.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/main.js +1 -1
- package/dist/main.node.js +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -48190,7 +48190,7 @@ const formatHTML = (html) => {
|
|
|
48190
48190
|
*/
|
|
48191
48191
|
const reformatHTML = (html, indent = 2) => {
|
|
48192
48192
|
// Remove leading/trailing newlines
|
|
48193
|
-
const cleaned = html.replace(/^\s*\n|\n\s*$/g, '');
|
|
48193
|
+
const cleaned = html.replace(/^\s*\n|\n\s*$/g, '').replaceAll(/(?<!\\(\\\\)*)`/g, '\\`');
|
|
48194
48194
|
// // Create a tab/indent with the specified number of spaces
|
|
48195
48195
|
// const tab = ' '.repeat(indent);
|
|
48196
48196
|
// // Indent each line of the HTML (converts to an array, indents each line, then joins back)
|
package/dist/main.node.js
CHANGED
|
@@ -49269,7 +49269,7 @@ const formatHTML = (html) => {
|
|
|
49269
49269
|
*/
|
|
49270
49270
|
const reformatHTML = (html, indent = 2) => {
|
|
49271
49271
|
// Remove leading/trailing newlines
|
|
49272
|
-
const cleaned = html.replace(/^\s*\n|\n\s*$/g, '');
|
|
49272
|
+
const cleaned = html.replace(/^\s*\n|\n\s*$/g, '').replaceAll(/(?<!\\(\\\\)*)`/g, '\\`');
|
|
49273
49273
|
// // Create a tab/indent with the specified number of spaces
|
|
49274
49274
|
// const tab = ' '.repeat(indent);
|
|
49275
49275
|
// // Indent each line of the HTML (converts to an array, indents each line, then joins back)
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@readme/markdown",
|
|
3
3
|
"description": "ReadMe's React-based Markdown parser",
|
|
4
4
|
"author": "Rafe Goldberg <rafe@readme.io>",
|
|
5
|
-
"version": "7.12.
|
|
5
|
+
"version": "7.12.1",
|
|
6
6
|
"main": "dist/main.node.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"browser": "dist/main.js",
|