Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
2e482eca
Commit
2e482eca
authored
Jul 20, 2024
by
Timothy J. Baek
Browse files
refac
parent
fdea1afc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
src/lib/utils/index.ts
src/lib/utils/index.ts
+0
-2
No files found.
src/lib/utils/index.ts
View file @
2e482eca
...
@@ -11,8 +11,6 @@ const convertLatexToSingleLine = (content) => {
...
@@ -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{...}
];
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment