Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions dist/showdown.esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! showdown v 3.0.0-rc2 - 05-07-2026 */
/*! showdown v 3.0.0-rc2 - 22-07-2026 */
const showdown = (function () {
// noinspection HtmlRequiredLangAttribute

Expand Down Expand Up @@ -12102,12 +12102,9 @@ showdown.subParser('makehtml.stripLinkDefinitions', function (text, options, glo
text += '¨0';

let replaceFunc = function (wholeMatch, linkId, url, width, height, blankLines, title) {

// if there aren't two instances of linkId it must not be a reference link so back out
// Always strip matching definitions; unused defs must produce no output
// (Markdown.pl / CommonMark). Do not require a second occurrence of linkId.
linkId = showdown.helper.caseFold(linkId);
if (showdown.helper.caseFold(text).split(linkId).length - 1 < 2) {
return wholeMatch;
}

let captureStartEvent = new showdown.Event('makehtml.stripLinkDefinitions.onCapture', wholeMatch);
captureStartEvent
Expand Down
4 changes: 2 additions & 2 deletions dist/showdown.esm.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/showdown.esm.min.js.map

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions dist/showdown.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
;/*! showdown v 3.0.0-rc2 - 05-07-2026 */
;/*! showdown v 3.0.0-rc2 - 22-07-2026 */
(function(){
// noinspection HtmlRequiredLangAttribute

Expand Down Expand Up @@ -12102,12 +12102,9 @@ showdown.subParser('makehtml.stripLinkDefinitions', function (text, options, glo
text += '¨0';

let replaceFunc = function (wholeMatch, linkId, url, width, height, blankLines, title) {

// if there aren't two instances of linkId it must not be a reference link so back out
// Always strip matching definitions; unused defs must produce no output
// (Markdown.pl / CommonMark). Do not require a second occurrence of linkId.
linkId = showdown.helper.caseFold(linkId);
if (showdown.helper.caseFold(text).split(linkId).length - 1 < 2) {
return wholeMatch;
}

let captureStartEvent = new showdown.Event('makehtml.stripLinkDefinitions.onCapture', wholeMatch);
captureStartEvent
Expand Down
4 changes: 2 additions & 2 deletions dist/showdown.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/showdown.min.js.map

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions src/subParsers/makehtml/stripLinkDefinitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@ showdown.subParser('makehtml.stripLinkDefinitions', function (text, options, glo
text += '¨0';

let replaceFunc = function (wholeMatch, linkId, url, width, height, blankLines, title) {

// if there aren't two instances of linkId it must not be a reference link so back out
// Always strip matching definitions; unused defs must produce no output
// (Markdown.pl / CommonMark). Do not require a second occurrence of linkId.
linkId = showdown.helper.caseFold(linkId);
if (showdown.helper.caseFold(text).split(linkId).length - 1 < 2) {
return wholeMatch;
}

let captureStartEvent = new showdown.Event('makehtml.stripLinkDefinitions.onCapture', wholeMatch);
captureStartEvent
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<p>one</p>
<p>two</p>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[unused]: http://example.com/

one

[zqx]: /url

two