mirror of
https://github.com/open-webui/open-webui
synced 2024-11-07 00:59:52 +00:00
refac
This commit is contained in:
parent
fdea1afc7f
commit
2e482eca6d
@ -11,8 +11,6 @@ const convertLatexToSingleLine = (content) => {
|
||||
const patterns = [
|
||||
/(\$\$[\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{...}
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user