mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
Merge pull request #14219 from Yu-QX/main
Fix: Solve equation problems with Chinese symbols
This commit is contained in:
commit
06aa59e2a5
1 changed files with 2 additions and 1 deletions
|
|
@ -12,7 +12,8 @@ const DELIMITER_LIST = [
|
|||
|
||||
// Defines characters that are allowed to immediately precede or follow a math delimiter.
|
||||
const ALLOWED_SURROUNDING_CHARS =
|
||||
'\\s?。,、;!-\\/:-@\\[-`{-~\\p{Script=Han}\\p{Script=Hiragana}\\p{Script=Katakana}\\p{Script=Hangul}';
|
||||
'\\s。,、、;;„“‘’“”()「」『』[]《》【】‹›«»…⋯::?!~⇒?!-\\/:-@\\[-`{-~\\p{Script=Han}\\p{Script=Hiragana}\\p{Script=Katakana}\\p{Script=Hangul}';
|
||||
// Modified to fit more formats in different languages. Originally: '\\s?。,、;!-\\/:-@\\[-`{-~\\p{Script=Han}\\p{Script=Hiragana}\\p{Script=Katakana}\\p{Script=Hangul}';
|
||||
|
||||
// const DELIMITER_LIST = [
|
||||
// { left: '$$', right: '$$', display: false },
|
||||
|
|
|
|||
Loading…
Reference in a new issue