chore: small blockGamut regex fix

This commit is contained in:
Estevao Soares dos Santos 2016-12-20 21:44:15 +00:00
parent a06a40cd51
commit cf2a9075ae
5 changed files with 2 additions and 2 deletions

BIN
dist/showdown.js vendored

Binary file not shown.

BIN
dist/showdown.js.map vendored

Binary file not shown.

BIN
dist/showdown.min.js vendored

Binary file not shown.

Binary file not shown.

View File

@ -15,8 +15,8 @@ showdown.subParser('blockGamut', function (text, options, globals) {
// Do Horizontal Rules: // Do Horizontal Rules:
var key = showdown.subParser('hashBlock')('<hr />', options, globals); var key = showdown.subParser('hashBlock')('<hr />', options, globals);
text = text.replace(/^( ?-){3,}[ \t]*$/gm, key); text = text.replace(/^( ?-){3,}[ \t]*$/gm, key);
text = text.replace(/^( ?\*){3,}[ \t]*$$/gm, key); text = text.replace(/^( ?\*){3,}[ \t]*$/gm, key);
text = text.replace(/^( ?_){3,}[ \t]*$$/gm, key); text = text.replace(/^( ?_){3,}[ \t]*$/gm, key);
text = showdown.subParser('lists')(text, options, globals); text = showdown.subParser('lists')(text, options, globals);
text = showdown.subParser('codeBlocks')(text, options, globals); text = showdown.subParser('codeBlocks')(text, options, globals);