fix(escapeMarkdown): fix double escaping (v13) (#8799)

This commit is contained in:
RedGuy12
2022-10-31 13:01:06 -05:00
committed by GitHub
parent c312da795e
commit caf6f66073

View File

@@ -199,6 +199,7 @@ class Util extends null {
})
.join(inlineCode ? '\\`' : '`');
}
if (escape) text = Util.escapeEscape(text);
if (inlineCode) text = Util.escapeInlineCode(text);
if (codeBlock) text = Util.escapeCodeBlock(text);
if (italic) text = Util.escapeItalic(text);
@@ -206,7 +207,6 @@ class Util extends null {
if (underline) text = Util.escapeUnderline(text);
if (strikethrough) text = Util.escapeStrikethrough(text);
if (spoiler) text = Util.escapeSpoiler(text);
if (escape) text = Util.escapeEscape(text);
if (heading) text = Util.escapeHeading(text);
if (bulletedList) text = Util.escapeBulletedList(text);
if (numberedList) text = Util.escapeNumberedList(text);