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 684 additions and 576 deletions

1224
dist/showdown.js vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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