mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-14 21:09:58 +00: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,
|
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
|
||||||
|
|
Loading…
Reference in a new issue