fix: remove extra margins before tags

This commit is contained in:
Onion-L 2024-11-04 10:36:11 +08:00 committed by TAKAHASHI Shuuji
parent 428db939ab
commit b3890a5eff

View file

@ -90,6 +90,11 @@ export function parseMastodonHTML(
inReplyToStatus,
} = options
// remove newline before Tags
html = html.replace(/\n(<[^>]+>)/g, (_1, raw) => {
return raw
})
if (markdown) {
// Handle code blocks
html = html