mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 11:27:46 +01:00
fix: katex issue
This commit is contained in:
@@ -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