diff --git a/composables/content-parse.ts b/composables/content-parse.ts index f9b02b65..0fd66364 100644 --- a/composables/content-parse.ts +++ b/composables/content-parse.ts @@ -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