"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "29c6b253ca28f57c9a74e717e78b15c06fc8d547"
Commit e491e96f authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: markdown '$$' rendering issue

parent 8afc8c57
......@@ -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{...}
];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment