mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-21 17:05:22 +03:00
fix: remove extra margins before tags
This commit is contained in:
parent
428db939ab
commit
b3890a5eff
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