mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
fix: katex issue
This commit is contained in:
parent
0e20b15afe
commit
d6f3444141
1 changed files with 6 additions and 0 deletions
|
|
@ -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 ?? ''}`;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue