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) {