fedimbed: fix newlines for mastodon posts

This commit is contained in:
Cynthia Foxwell 2022-12-09 12:17:51 -07:00
parent 2fc8192147
commit cd08f98b74
1 changed files with 1 additions and 0 deletions

View File

@ -290,6 +290,7 @@ async function processUrl(msg, url) {
// TODO: convert certain HTML tags back to markdown
content = content.replace(/<br>/g, "\n");
content = content.replace(/<\/p><p>/g, "\n\n");
content = content.replace(/(<([^>]+)>)/gi, "");
content = parseHtmlEntities(content);