diff --git a/dist/showdown.js b/dist/showdown.js index 8a8f71b..9e12614 100644 Binary files a/dist/showdown.js and b/dist/showdown.js differ diff --git a/dist/showdown.js.map b/dist/showdown.js.map index a7d55e4..9dc87dd 100644 Binary files a/dist/showdown.js.map and b/dist/showdown.js.map differ diff --git a/dist/showdown.min.js b/dist/showdown.min.js index 41a081a..93d433f 100644 Binary files a/dist/showdown.min.js and b/dist/showdown.min.js differ diff --git a/dist/showdown.min.js.map b/dist/showdown.min.js.map index 8d1e0dc..ac3e289 100644 Binary files a/dist/showdown.min.js.map and b/dist/showdown.min.js.map differ diff --git a/src/helpers.js b/src/helpers.js index c72be00..dbe5465 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -376,5 +376,5 @@ if (typeof(console) === 'undefined') { * We declare some common regexes to improve performance */ showdown.helper.regexes = { - asteriskAndDash: /([*_])/g + asteriskDashAndColon: /([*_:])/g }; diff --git a/src/subParsers/anchors.js b/src/subParsers/anchors.js index 49676ea..525c6f9 100644 --- a/src/subParsers/anchors.js +++ b/src/subParsers/anchors.js @@ -33,14 +33,14 @@ showdown.subParser('anchors', function (text, options, globals) { } //url = showdown.helper.escapeCharacters(url, '*_', false); // replaced line to improve performance - url = url.replace(showdown.helper.regexes.asteriskAndDash, showdown.helper.escapeCharactersCallback); + url = url.replace(showdown.helper.regexes.asteriskDashAndColon, showdown.helper.escapeCharactersCallback); var result = '