fix: remove extra margins before tags (#3039)

This commit is contained in:
XL 2024-11-24 18:29:11 +08:00 committed by GitHub
parent aff559780b
commit e6ebde3ac4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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