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
e491e96f
"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "29c6b253ca28f57c9a74e717e78b15c06fc8d547"
Commit
e491e96f
authored
Aug 08, 2024
by
Timothy J. Baek
Browse files
fix: markdown '$$' rendering issue
parent
8afc8c57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/lib/utils/index.ts
src/lib/utils/index.ts
+1
-1
No files found.
src/lib/utils/index.ts
View file @
e491e96f
...
...
@@ -9,7 +9,7 @@ import { WEBUI_BASE_URL } from '$lib/constants';
const
convertLatexToSingleLine
=
(
content
)
=>
{
// Patterns to match multiline LaTeX blocks
const
patterns
=
[
/
(\$\$[\s\S]
*
?\$\$)
/g
,
// Match $$ ... $$
/
(\$\$
\s
[\s\S]
*
?\
s\
$\$)
/g
,
// Match $$ ... $$
/
(\\\[[\s\S]
*
?\\\])
/g
,
// Match \[ ... \]
/
(\\
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