fedimbed: try only backticks

This commit is contained in:
Cynthia Foxwell 2025-04-19 14:17:08 -06:00
parent 983c07c958
commit 6b38dd8d6e
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -1304,7 +1304,7 @@ 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.replace(/[*_~`|]/g, "\\$&"); content = content.replace(/`/g, "\\$&");
content = htmlToMarkdown(content); content = htmlToMarkdown(content);