mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-29 12:04:04 +00:00
Fix quotes (#1131)
Need to replace before rendering markdown, not after
This commit is contained in:
parent
4867e455f8
commit
2a5c690bdc
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue