diff --git a/Markdown.Converter.js b/Markdown.Converter.js index f6bb6c8..527bb51 100644 --- a/Markdown.Converter.js +++ b/Markdown.Converter.js @@ -754,11 +754,11 @@ else // -------- // text = text.replace(/^(.+)[ \t]*\n=+[ \t]*\n+/gm, - function (wholeMatch, m1) { return "

" + _RunSpanGamut(m1) + "

\n\n"; } + function (wholeMatch, m1) { return "

" + _RunSpanGamut(m1) + "

\n\n"; } ); text = text.replace(/^(.+)[ \t]*\n-+[ \t]*\n+/gm, - function (matchFound, m1) { return "

" + _RunSpanGamut(m1) + "

\n\n"; } + function (matchFound, m1) { return "

" + _RunSpanGamut(m1) + "

\n\n"; } ); // atx-style headers: @@ -783,7 +783,7 @@ else text = text.replace(/^(\#{1,6})[ \t]*(.+?)[ \t]*\#*\n+/gm, function (wholeMatch, m1, m2) { var h_level = m1.length; - return "" + _RunSpanGamut(m2) + "\n\n"; + return "" + _RunSpanGamut(m2) + "\n\n"; } );