fedimbed: fix newlines yet again
This commit is contained in:
parent
0f3e029430
commit
bb597279b5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue