From db096c83f8bd3946dcff8423a121cfa6fe65ee97 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Mon, 1 Aug 2022 15:01:19 +0700 Subject: [PATCH] Relax more markdown --- 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 96e2878..e99115b 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]+?(?=[\\