mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-28 13:28:52 +03:00
fix: remove extra margins before tags (#3039)
This commit is contained in:
parent
aff559780b
commit
e6ebde3ac4
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue