|
@@ -1,4 +1,4 @@
|
|
|
-;/*! showdown 07-06-2017 */
|
|
|
+;/*! showdown 04-08-2017 */
|
|
|
(function(){
|
|
|
/**
|
|
|
* Created by Tivie on 13-07-2015.
|
|
@@ -1431,8 +1431,12 @@ showdown.subParser('anchors', function (text, options, globals) {
|
|
|
if (!showdown.helper.isString(options.ghMentionsLink)) {
|
|
|
throw new Error('ghMentionsLink option must be a string');
|
|
|
}
|
|
|
- var lnk = options.ghMentionsLink.replace(/\{u}/g, username);
|
|
|
- return st + '<a href="' + lnk + '">' + mentions + '</a>';
|
|
|
+ var lnk = options.ghMentionsLink.replace(/\{u}/g, username),
|
|
|
+ target = '';
|
|
|
+ if (options.openLinksInNewWindow) {
|
|
|
+ target = ' target="¨E95Eblank"';
|
|
|
+ }
|
|
|
+ return st + '<a href="' + lnk + '"' + target + '>' + mentions + '</a>';
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -2798,7 +2802,8 @@ showdown.subParser('tables', function (text, options, globals) {
|
|
|
function parseHeaders (header, style) {
|
|
|
var id = '';
|
|
|
header = header.trim();
|
|
|
- if (options.tableHeaderId) {
|
|
|
+ // support both tablesHeaderId and tableHeaderId due to error in documention so we don't break backwards compatibility
|
|
|
+ if (options.tablesHeaderId || options.tableHeaderId) {
|
|
|
id = ' id="' + header.replace(/ /g, '_').toLowerCase() + '"';
|
|
|
}
|
|
|
header = showdown.subParser('spanGamut')(header, options, globals);
|