mirror of
https://github.com/open-webui/open-webui
synced 2024-11-07 09:09:53 +00:00
refac
This commit is contained in:
parent
fdea1afc7f
commit
2e482eca6d
@ -11,8 +11,6 @@ const convertLatexToSingleLine = (content) => {
|
|||||||
const patterns = [
|
const patterns = [
|
||||||
/(\$\$[\s\S]*?\$\$)/g, // Match $$ ... $$
|
/(\$\$[\s\S]*?\$\$)/g, // Match $$ ... $$
|
||||||
/(\\[\s\S]*?\\])/g, // Match \[ ... \]
|
/(\\[\s\S]*?\\])/g, // Match \[ ... \]
|
||||||
/(\$\[\s\S]*?\$\])/g, // Match $\[ ... \]$
|
|
||||||
/(\$\(\s\S]*?\$\))/g, // Match $\( ... \)$
|
|
||||||
/(\\begin\{[a-z]+\}[\s\S]*?\\end\{[a-z]+\})/g // Match \begin{...} ... \end{...}
|
/(\\begin\{[a-z]+\}[\s\S]*?\\end\{[a-z]+\})/g // Match \begin{...} ... \end{...}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user