From: Nutomic Date: Fri, 9 Jun 2023 13:00:45 +0000 (+0200) Subject: Fix quotes (#1131) X-Git-Url: http://these/git/%24%7B%60data:application/static/%7B%60https:/%22%7B%7D/%7Blink%7D?a=commitdiff_plain;h=2a5c690bdc171311c9ed67ec644b4c102da41338;p=lemmy-ui.git Fix quotes (#1131) Need to replace before rendering markdown, not after --- diff --git a/src/shared/utils.ts b/src/shared/utils.ts index 2934268..f98fa56 100644 --- a/src/shared/utils.ts +++ b/src/shared/utils.ts @@ -207,12 +207,12 @@ export function hotRank(score: number, timeStr: string): number { export function mdToHtml(text: string) { // restore '>' character to fix quotes - return { __html: md.render(text).split(">").join(">") }; + return { __html: md.render(text.split(">").join(">")) }; } export function mdToHtmlNoImages(text: string) { // restore '>' character to fix quotes - return { __html: mdNoImages.render(text).split(">").join(">") }; + return { __html: mdNoImages.render(text.split(">").join(">")) }; } export function mdToHtmlInline(text: string) {