fedimbed: escape some markdown

This commit is contained in:
Cynthia Foxwell 2025-04-19 14:15:12 -06:00
parent 375eafd782
commit 180839e687
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -1304,6 +1304,8 @@ async function processUrl(msg, url, spoiler = false, command = false, inQuote =
.replaceAll(/twitter\.com\/t\.co/g, "t.co"); .replaceAll(/twitter\.com\/t\.co/g, "t.co");
} }
content = content.replaceAll(/[*_~`|]/g, "\\$&");
content = htmlToMarkdown(content); content = htmlToMarkdown(content);
if (platformName == "Nitter") { if (platformName == "Nitter") {