mirror of
https://github.com/open-webui/open-webui
synced 2025-02-21 21:01:09 +00:00
fix: katex issue
This commit is contained in:
parent
0e20b15afe
commit
d6f3444141
@ -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 New Issue
Block a user