fix: katex issue
This commit is contained in:
1 parent
0e20b15afe
commit
d6f3444141
1 file changed
+6
@@ -134,6 +134,9 @@ function inlineKatex(options) {
|
||||
},
|
||||
tokenizer(src, tokens) {
|
||||
return katexTokenizer(src, tokens, false);
|
||||
},
|
||||
renderer(token) {
|
||||
return `${token?.text ?? ''}`;
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -147,6 +150,9 @@ function blockKatex(options) {
|
||||
},
|
||||
tokenizer(src, tokens) {
|
||||
return katexTokenizer(src, tokens, true);
|
||||
},
|
||||
renderer(token) {
|
||||
return `${token?.text ?? ''}`;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user