Need to replace before rendering markdown, not after
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) {