Fix quotes (#1131)

Need to replace before rendering markdown, not after
This commit is contained in:
Nutomic 2023-06-09 15:00:45 +02:00 committed by GitHub
parent 4867e455f8
commit 2a5c690bdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,12 +207,12 @@ export function hotRank(score: number, timeStr: string): number {
export function mdToHtml(text: string) { export function mdToHtml(text: string) {
// restore '>' character to fix quotes // restore '>' character to fix quotes
return { __html: md.render(text).split(">").join(">") }; return { __html: md.render(text.split(">").join(">")) };
} }
export function mdToHtmlNoImages(text: string) { export function mdToHtmlNoImages(text: string) {
// restore '>' character to fix quotes // restore '>' character to fix quotes
return { __html: mdNoImages.render(text).split(">").join(">") }; return { __html: mdNoImages.render(text.split(">").join(">")) };
} }
export function mdToHtmlInline(text: string) { export function mdToHtmlInline(text: string) {