From 04b9849b40648ccf6e6b13b1f91c9c0a54957d21 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Mon, 8 Aug 2022 18:05:44 +0700 Subject: [PATCH] Fix mathjax --- judge/jinja2/markdown/math.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/judge/jinja2/markdown/math.py b/judge/jinja2/markdown/math.py index e99115b..d4e3777 100644 --- a/judge/jinja2/markdown/math.py +++ b/judge/jinja2/markdown/math.py @@ -12,7 +12,7 @@ mistune._pre_tags.append("latex") class MathInlineGrammar(mistune.InlineGrammar): block_math = re.compile(r"^\$\$(.*?)\$\$|^\\\[(.*?)\\\]", re.DOTALL) math = re.compile(r"^~(.*?)~|^\$(.*?)\$|^\\\((.*?)\\\)", re.DOTALL) - # text = re.compile(r"^[\s\S]+?(?=[\\