This commit is contained in:
Timothy J. Baek 2024-07-20 11:29:44 +02:00
parent fdea1afc7f
commit 2e482eca6d

View File

@ -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{...}
];