mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(escapeMarkdown): fix double escaping (#8798)
* fix(escapeMarkdown): fix double escaping Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com> * remove cruft Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com> Signed-off-by: RedGuy12 <61329810+RedGuy12@users.noreply.github.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -140,6 +140,7 @@ function escapeMarkdown(
|
||||
})
|
||||
.join(inlineCode ? '\\`' : '`');
|
||||
}
|
||||
if (escape) text = escapeEscape(text);
|
||||
if (inlineCode) text = escapeInlineCode(text);
|
||||
if (codeBlock) text = escapeCodeBlock(text);
|
||||
if (italic) text = escapeItalic(text);
|
||||
@@ -147,7 +148,6 @@ function escapeMarkdown(
|
||||
if (underline) text = escapeUnderline(text);
|
||||
if (strikethrough) text = escapeStrikethrough(text);
|
||||
if (spoiler) text = escapeSpoiler(text);
|
||||
if (escape) text = escapeEscape(text);
|
||||
if (heading) text = escapeHeading(text);
|
||||
if (bulletedList) text = escapeBulletedList(text);
|
||||
if (numberedList) text = escapeNumberedList(text);
|
||||
|
||||
Reference in New Issue
Block a user