|
@@ -1,4 +1,4 @@
|
|
|
-;/*! showdown v 1.7.6 - 06-10-2017 */
|
|
|
+;/*! showdown v 1.7.6 - 24-10-2017 */
|
|
|
(function(){
|
|
|
/**
|
|
|
* Created by Tivie on 13-07-2015.
|
|
@@ -925,7 +925,7 @@ if (typeof(console) === 'undefined') {
|
|
|
* We declare some common regexes to improve performance
|
|
|
*/
|
|
|
showdown.helper.regexes = {
|
|
|
- asteriskAndDash: /([*_])/g
|
|
|
+ asteriskDashAndColon: /([*_:])/g
|
|
|
};
|
|
|
|
|
|
/**
|
|
@@ -1393,14 +1393,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 = '<a href="' + url + '"';
|
|
|
|
|
|
if (title !== '' && title !== null) {
|
|
|
title = title.replace(/"/g, '"');
|
|
|
//title = showdown.helper.escapeCharacters(title, '*_', false); // replaced line to improve performance
|
|
|
- title = title.replace(showdown.helper.regexes.asteriskAndDash, showdown.helper.escapeCharactersCallback);
|
|
|
+ title = title.replace(showdown.helper.regexes.asteriskDashAndColon, showdown.helper.escapeCharactersCallback);
|
|
|
result += ' title="' + title + '"';
|
|
|
}
|
|
|
|
|
@@ -2300,16 +2300,16 @@ showdown.subParser('images', function (text, options, globals) {
|
|
|
altText = altText
|
|
|
.replace(/"/g, '"')
|
|
|
//altText = showdown.helper.escapeCharacters(altText, '*_', false);
|
|
|
- .replace(showdown.helper.regexes.asteriskAndDash, showdown.helper.escapeCharactersCallback);
|
|
|
+ .replace(showdown.helper.regexes.asteriskDashAndColon, showdown.helper.escapeCharactersCallback);
|
|
|
//url = showdown.helper.escapeCharacters(url, '*_', false);
|
|
|
- url = url.replace(showdown.helper.regexes.asteriskAndDash, showdown.helper.escapeCharactersCallback);
|
|
|
+ url = url.replace(showdown.helper.regexes.asteriskDashAndColon, showdown.helper.escapeCharactersCallback);
|
|
|
var result = '<img src="' + url + '" alt="' + altText + '"';
|
|
|
|
|
|
if (title) {
|
|
|
title = title
|
|
|
.replace(/"/g, '"')
|
|
|
//title = showdown.helper.escapeCharacters(title, '*_', false);
|
|
|
- .replace(showdown.helper.regexes.asteriskAndDash, showdown.helper.escapeCharactersCallback);
|
|
|
+ .replace(showdown.helper.regexes.asteriskDashAndColon, showdown.helper.escapeCharactersCallback);
|
|
|
result += ' title="' + title + '"';
|
|
|
}
|
|
|
|