// contorted like /[ \t]*\n+/ .
text = text.replace(/^[ \t]+$/mg,"");
+ text = _DoCodeBlcoks(text);
+
// Turn block-level HTML blocks into hash entries
text = _HashHTMLBlocks(text);
// was to escape raw HTML in the original Markdown source. This time,
// we're escaping the markup we've just created, so that we don't wrap
// <p> tags around block-level tags.
- text = _HashHTMLBlocks(text);
+
text = _FormParagraphs(text);
-
+ text = _HashHTMLBlocks(text);
return text;
}
*/
// attacklab: sentinel workarounds for lack of \A and \Z, safari\khtml bug
+ text = text.replace(/~0/,"");
text += "~0";
text = text.replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,