Temporary change to wait for cached frontend

This commit is contained in:
cuom1999 2022-07-30 21:01:37 +07:00
parent 627cf37996
commit 427e391416
2 changed files with 9 additions and 7 deletions

View file

@ -65,5 +65,5 @@ class MathRenderer(mistune.Renderer):
def math(self, math):
if self.mathoid is None or not math:
return r"$%s$" % mistune.escape(str(math))
return r"~%s~" % mistune.escape(str(math))
return self.mathoid.inline_math(math)