list regex change
This commit is contained in:
parent
142bca520a
commit
396880e51a
@ -16,7 +16,7 @@ var block = {
|
||||
heading: /^ *(#{1,6}) *([^\n#]*) *#*/,
|
||||
lheading: /^([^\n]+)\n *(=|-){3,}/,
|
||||
blockquote: /^ *>[^\n]*(?:\n *>[^\n]*)*/,
|
||||
list: /^( *)([*+-]|\d+\.) [^\0]+?(?:\n{2,}(?! )|\s*$)(?!\1\2|\d+\.)/,
|
||||
list: /^( *)([*+-]|\d+\.) [^\0]+?(?:\n{2,}(?! )|\s*$)(?!\1\2|\1\d+\.)/,
|
||||
html: /^(?:<!--[^\0]*?-->|<(\w+)[^\0]+?<\/\1>|<[^<>\n]+>) *(?:\n{2,}|\s*$)/,
|
||||
text: /^[^\n]+/
|
||||
};
|
||||
@ -189,7 +189,7 @@ var inline = {
|
||||
reflink: /^!?\[([^\]]+)\]\s*\[([^\]]*)\]/,
|
||||
strong: /^__([^\0]+?)__(?!_)|^\*\*([^\0]+?)\*\*(?!\*)/,
|
||||
em: /^_([^_]+)_|^\*([^*]+)\*/,
|
||||
code: /^`([^`]+)`|^``([\s\S]+?)``/
|
||||
code: /^`([^`]+)`|^``([^\0]+?)``/
|
||||
};
|
||||
|
||||
inline.keys = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user