From 08eebb651d9202c93c202dedcf8cbe6f46a5365f Mon Sep 17 00:00:00 2001 From: Svyatoslav Kryukov Date: Tue, 17 Jan 2023 14:26:36 +0300 Subject: [PATCH] fix: use global regex to escape backticks (#1253) --- composables/content-parse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/content-parse.ts b/composables/content-parse.ts index 9c0baf92..ed008cbc 100644 --- a/composables/content-parse.ts +++ b/composables/content-parse.ts @@ -89,7 +89,7 @@ export function parseMastodonHTML( const code = htmlToText(raw) .replace(//g, '>') - .replace(/`/, '`') + .replace(/`/g, '`') const classes = lang ? ` class="language-${lang}"` : '' return `>
${code}
` })