single tag blocks
This commit is contained in:
parent
cfe1617862
commit
f771100b03
@ -62,7 +62,12 @@ var block = {
|
||||
|
||||
//list: /^(?:( *)(\*|\+|-|\d+\.)[^\n]*\n(?:(?!\1\2)[^\n]+(?:\n|$))*){2,}/,
|
||||
|
||||
html: /^<([^\/\s>]+)[^\n>]*>[^\n]*(?:\n[^\n]+)*\n?<\/\1>/,
|
||||
|
||||
//html: /^<([^\/\s>]+)[^\n>]*>[^\n]*(?:\n[^\n]+)*\n?<\/\1>/,
|
||||
|
||||
// account for single tags
|
||||
html: /^<[^>\n]+> *(?:\n{2}|$)|^<([^\/\s>]+)[^\n>]*>[^\n]*(?:\n[^\n]+)*\n?<\/\1>/,
|
||||
|
||||
text: /^[^\n]+/
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user