This commit is contained in:
Estevão Soares dos Santos 2022-04-25 07:36:59 +01:00
parent f9bc0ac97d
commit c2cfcc2c36
6 changed files with 12 additions and 16 deletions

BIN
dist/showdown.js vendored

Binary file not shown.

BIN
dist/showdown.js.map vendored

Binary file not shown.

BIN
dist/showdown.min.js vendored

Binary file not shown.

Binary file not shown.

View File

@ -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;

View File

@ -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*/
});
});
});