Skip to content

Commit

Permalink
Update src/rules.js
Browse files Browse the repository at this point in the history
Simplify `code` regex

Co-Authored-By: Tony Brix <[email protected]>
  • Loading branch information
calculuschild and UziTech authored Feb 10, 2020
1 parent a794959 commit 30ca83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ block.gfm.table = edit(block.gfm.table)
.replace('heading', ' {0,3}#{1,6} +')
.replace('lheading', '([^\\n]+)\\n {0,3}(=+|-+) *(?:\\n+|$)')
.replace('blockquote', ' {0,3}>')
.replace('code', ' {4}[^\\n]+')
.replace('code', ' {4}[^\\n]')
.replace('fences', ' {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n')
.replace('list', ' {0,3}(?:[*+-]|1[.)]) ') // only lists starting from 1 can interrupt
.replace('html', '</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)')
Expand Down

0 comments on commit 30ca83b

Please sign in to comment.