Skip to content

Commit

Permalink
fix: remove extra margins before tags (#3039)
Browse files Browse the repository at this point in the history
  • Loading branch information
Onion-L authored Nov 24, 2024
1 parent aff5597 commit e6ebde3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions composables/content-parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6ebde3

Please sign in to comment.