markdlow blockquote fix

This commit is contained in:
Yuri Kuznetsov
2024-02-02 16:30:08 +02:00
parent 1a5abe6363
commit f5a655b9fc
+2 -2
View File
@@ -53,7 +53,7 @@ class ViewHelper {
regex: /`([\s\S]*?)`/g,
value: (s, string) => {
// noinspection RegExpRedundantEscape
return '`' + string.replace(/\\\>/g, '>') + '`';
return '`' + string.replace(/\\\</g, '<') + '`';
},
},
];
@@ -692,7 +692,7 @@ class ViewHelper {
text = text || '';
// noinspection RegExpRedundantEscape
text = text.replace(/\>/g, '\\>');
text = text.replace(/\</g, '\\<');
this.mdBeforeList.forEach(item => {
text = text.replace(item.regex, item.value);