Skip to content

Commit 5972e73

Browse files
Update fences after tables regex
Fences after tables fixed in line with PR #1600.
1 parent ec38dd1 commit 5972e73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ block.gfm.table = edit(block.gfm.table)
105105
.replace('lheading', '([^\\n]+)\\n {0,3}(=+|-+) *(?:\\n+|$)')
106106
.replace('blockquote', ' {0,3}>')
107107
.replace('code', ' {4}[^\\n]')
108-
.replace('fences', ' {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n')
108+
.replace('fences', ' {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n')
109109
.replace('list', ' {0,3}(?:[*+-]|1[.)]) ') // only lists starting from 1 can interrupt
110110
.replace('html', '</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)')
111111
.replace('tag', block._tag) // pars can be interrupted by type (6) html blocks

0 commit comments

Comments
 (0)