mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-10 02:15:11 +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) {
|
||||
// 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) {
|
||||
|
|
Loading…
Reference in a new issue