From: Nutomic Date: Fri, 9 Jun 2023 13:00:45 +0000 (+0200) Subject: Fix quotes (#1131) X-Git-Url: http://these/git/%22/display/44b525e5-4101b003e005e70a-d472d963/static/%7Bthis.state.post.url%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) {