Fix link escaping breaking with suppressed links

This commit is contained in:
Cadence Ember
2026-02-12 16:01:48 +13:00
parent 0d574c1370
commit 8ea29d6c27
2 changed files with 64 additions and 1 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ turndownService.escape = function (string) {
return string.replace(/\s+|\S+/g, part => { // match chunks of spaces or non-spaces
if (part.match(/\s/)) return part // don't process spaces
if (part.match(/^https?:\/\//)) {
if (part.match(/^<?https?:\/\//)) {
return part
} else {
return markdownEscapes.reduce(function (accumulator, escape) {