diff --git a/dist/showdown.js b/dist/showdown.js index f6116b6..8ef8250 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 79b00c8..804a811 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 5672520..a6207a3 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 853dd93..8829c70 100644 Binary files a/dist/showdown.min.js.map and b/dist/showdown.min.js.map differ diff --git a/src/subParsers/makehtml/link.js b/src/subParsers/makehtml/link.js index b127cdc..ff3e550 100644 --- a/src/subParsers/makehtml/link.js +++ b/src/subParsers/makehtml/link.js @@ -212,14 +212,14 @@ showdown.subParser('makehtml.link', function (text, options, globals) { function writeAnchorTag (subEvtName, pattern, wholeMatch, text, linkId, url, title, emptyCase) { let matches = { - _wholeMatch: wholeMatch, - _linkId: linkId, - _url: url, - _title: title, - text: text - }, - otp, - attributes = {}; + _wholeMatch: wholeMatch, + _linkId: linkId, + _url: url, + _title: title, + text: text + }, + otp, + attributes = {}; title = title || null; url = url || null; diff --git a/test/unit/showdown.events.js b/test/unit/showdown.events.js index 5dfb488..a8a7446 100644 --- a/test/unit/showdown.events.js +++ b/test/unit/showdown.events.js @@ -7,13 +7,7 @@ describe('showdown.Event', function () { 'use strict'; - const subparserList = showdown.getSubParserList(); - const eventTypes = [ - 'onStart', - 'onEnd', - 'onCapture', - 'onHash' - ]; + //const subparserList = showdown.getSubParserList(); const testSpec = { makehtml: { @@ -267,6 +261,7 @@ describe('showdown.Event', function () { }); describe('makehtml', function () { + /* jshint -W083*/ for (let parser in testSpec.makehtml) { describe(parser, function () { @@ -277,6 +272,7 @@ describe('showdown.Event', function () { title += 'trigger "' + event + ' event"'; let expected = testSpec.makehtml[parser][ts].result; let actual = false; + it(title, function () { converter.listen(event, function () { actual = true; @@ -286,8 +282,8 @@ describe('showdown.Event', function () { }); } }); - } + /* jshint +W083*/ }); }); });