From 2a5c690bdc171311c9ed67ec644b4c102da41338 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Fri, 9 Jun 2023 15:00:45 +0200 Subject: [PATCH] Fix quotes (#1131) Need to replace before rendering markdown, not after --- src/shared/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/utils.ts b/src/shared/utils.ts index 2934268d..f98fa563 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) {