fedimbed: fix newlines yet again

This commit is contained in:
Cynthia Foxwell 2022-12-19 18:20:30 -07:00
parent 0f3e029430
commit bb597279b5
1 changed files with 1 additions and 1 deletions

View File

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