Skip to content

Commit

Permalink
chore: small blockGamut regex fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tivie committed Dec 20, 2016
1 parent a06a40c commit cf2a907
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions dist/showdown.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/showdown.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/showdown.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/showdown.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/subParsers/blockGamut.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ showdown.subParser('blockGamut', function (text, options, globals) {
// Do Horizontal Rules:
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 = showdown.subParser('lists')(text, options, globals);
text = showdown.subParser('codeBlocks')(text, options, globals);
Expand Down

0 comments on commit cf2a907

Please sign in to comment.