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, inReplyToStatus,
} = options } = options
// remove newline before Tags
html = html.replace(/\n(<[^>]+>)/g, (_1, raw) => {
return raw
})
if (markdown) { if (markdown) {
// Handle code blocks // Handle code blocks
html = html html = html