1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-15 05:19:58 +00:00

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, 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