diff --git a/lib/showdown/showdown-0.9.js b/lib/showdown/showdown-0.9.js index 200a5ae7..1bab5b39 100644 --- a/lib/showdown/showdown-0.9.js +++ b/lib/showdown/showdown-0.9.js @@ -977,9 +977,9 @@ var _EncodeCode = function(text) { var _DoItalicsAndBold = function(text) { - // ** must go first: + // must go first: text = text.replace(/(\*\*|__)(?=\S)([^\r]*?\S[*_]*)\1/g, - "**$2"); + "$2"); text = text.replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g, "$2"); @@ -1293,4 +1293,4 @@ var escapeCharacters_callback = function(wholeMatch,m1) { return "~E"+charCodeToEscape+"E"; } -} // end of Showdown.converter +} // end of Showdown.converter \ No newline at end of file