"deployment/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "c5acd8c2f4860f31d209f3d68ef666504a932cb7"
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'; ...@@ -9,7 +9,7 @@ import { WEBUI_BASE_URL } from '$lib/constants';
const convertLatexToSingleLine = (content) => { const convertLatexToSingleLine = (content) => {
// Patterns to match multiline LaTeX blocks // Patterns to match multiline LaTeX blocks
const patterns = [ const patterns = [
/(\$\$[\s\S]*?\$\$)/g, // Match $$ ... $$ /(\$\$\s[\s\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{...}
]; ];
......
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