Skip to content

Commit

Permalink
Merge pull request #106 from seanfitzg/master
Browse files Browse the repository at this point in the history
Features don't render correctly when there are less than 4 spaces
  • Loading branch information
dirkrombauts committed May 7, 2014
2 parents 7ce0965 + 69eeb63 commit fc8c8f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ else
// attacklab: sentinel workarounds for lack of \A and \Z, safari\khtml bug
text += "~0";

text = text.replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,
text = text.replace(/(?:\n\n|^)((?:(?:[ ]{0}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,
function (wholeMatch, m1, m2) {
var codeblock = m1;
var nextChar = m2;
Expand Down

0 comments on commit fc8c8f7

Please sign in to comment.