pantsdown 1.5.0 → 1.5.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/package.json +1 -1
- package/src/rules/block.ts +2 -2
package/package.json
CHANGED
package/src/rules/block.ts
CHANGED
|
@@ -83,7 +83,7 @@ const block_table = edit(
|
|
|
83
83
|
"(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)", // Cells
|
|
84
84
|
)
|
|
85
85
|
.replace("hr", block_hr)
|
|
86
|
-
.replace("heading", " {0,3}#{1,6}
|
|
86
|
+
.replace("heading", " {0,3}#{1,6}(?:\\s|$)")
|
|
87
87
|
.replace("blockquote", " {0,3}>")
|
|
88
88
|
.replace("code", " {4}[^\\n]")
|
|
89
89
|
.replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n")
|
|
@@ -96,7 +96,7 @@ const block_paragraph = edit(
|
|
|
96
96
|
/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,
|
|
97
97
|
)
|
|
98
98
|
.replace("hr", block_hr)
|
|
99
|
-
.replace("heading", " {0,3}#{1,6}
|
|
99
|
+
.replace("heading", " {0,3}#{1,6}(?:\\s|$)")
|
|
100
100
|
.replace("|lheading", "") // setex headings don't interrupt commonmark paragraphs
|
|
101
101
|
.replace("table", block_table) // interrupt paragraphs with table
|
|
102
102
|
.replace("blockquote", " {0,3}>")
|