fix hr in list rule. rename "rule".
This commit is contained in:
parent
f1ca351a22
commit
d3a7ec19e7
@ -17,7 +17,7 @@ var block = {
|
|||||||
heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,
|
heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,
|
||||||
lheading: /^([^\n]+)\n *(=|-){3,} *\n*/,
|
lheading: /^([^\n]+)\n *(=|-){3,} *\n*/,
|
||||||
blockquote: /^( *>[^\n]+(\n[^\n]+)*\n*)+/,
|
blockquote: /^( *>[^\n]+(\n[^\n]+)*\n*)+/,
|
||||||
list: /^( *)(bull) [^\0]+?(?:rule|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,
|
list: /^( *)(bull) [^\0]+?(?:hr|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,
|
||||||
html: /^ *(?:comment|closed|closing) *(?:\n{2,}|\s*$)/,
|
html: /^ *(?:comment|closed|closing) *(?:\n{2,}|\s*$)/,
|
||||||
def: /^ *\[([^\]]+)\]: *([^\s]+)(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,
|
def: /^ *\[([^\]]+)\]: *([^\s]+)(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,
|
||||||
paragraph: /^([^\n]+\n?(?!body))+\n*/,
|
paragraph: /^([^\n]+\n?(?!body))+\n*/,
|
||||||
@ -32,7 +32,7 @@ block.item = replace(block.item, 'gm')
|
|||||||
|
|
||||||
block.list = replace(block.list)
|
block.list = replace(block.list)
|
||||||
(/bull/g, block.bullet)
|
(/bull/g, block.bullet)
|
||||||
('rule', /\n+(?=(?: *[-*_]){3,})/)
|
('hr', /\n+(?=(?: *[-*_]){3,} *(?:\n+|$))/)
|
||||||
();
|
();
|
||||||
|
|
||||||
block.html = replace(block.html)
|
block.html = replace(block.html)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user