potential changes
This commit is contained in:
parent
6387415fdf
commit
02a125ba0f
@ -31,6 +31,10 @@ block.html = (function() {
|
|||||||
.replace('closed', /<(\w+)[^\0]+?<\/\1>/.source)
|
.replace('closed', /<(\w+)[^\0]+?<\/\1>/.source)
|
||||||
.replace('closing', /<\w+[^>]*>/.source);
|
.replace('closing', /<\w+[^>]*>/.source);
|
||||||
|
|
||||||
|
// Better regexes:
|
||||||
|
// .replace('closed', /<(\w+)\b[^\0]*?<\/\1>/.source)
|
||||||
|
// .replace('closing', /<\w+(?!:\/|@)\b[^>]*>/.source);
|
||||||
|
|
||||||
return new
|
return new
|
||||||
RegExp(html);
|
RegExp(html);
|
||||||
})();
|
})();
|
||||||
@ -168,8 +172,12 @@ block.token = function(str, tokens, top) {
|
|||||||
tokens.push({
|
tokens.push({
|
||||||
type: 'blockquote_start'
|
type: 'blockquote_start'
|
||||||
});
|
});
|
||||||
|
|
||||||
cap = cap[0].replace(/^ *>/gm, '');
|
cap = cap[0].replace(/^ *>/gm, '');
|
||||||
|
|
||||||
|
// Better conformance:
|
||||||
|
// cap = cap[0].replace(/^ *> ?/gm, '');
|
||||||
|
|
||||||
// Pass `top` to keep the current
|
// Pass `top` to keep the current
|
||||||
// "toplevel" state. This is exactly
|
// "toplevel" state. This is exactly
|
||||||
// how markdown.pl works.
|
// how markdown.pl works.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user