Commit 765429ddaf041d00197ea471341453eb23a2256c

Authored by Miguel Barão
1 parent fd208248
Exists in master and in 1 other branch dev

- changed math markdown delimiters to 61603 and 61603$

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
tools.py
... ... @@ -119,13 +119,13 @@ class HighlightRenderer(mistune.Renderer):
119 119  
120 120 # Pass math through unaltered - mathjax does the rendering in the browser
121 121 def block_math(self, text):
122   - return fr'\[ {text} \]'
  122 + return fr'$$ {text} $$'
123 123  
124 124 def latex_environment(self, name, text):
125 125 return fr'\begin{{{name}}} {text} \end{{{name}}}'
126 126  
127 127 def inline_math(self, text):
128   - return fr'\( {text} \)'
  128 + return fr'$$$ {text} $$$'
129 129  
130 130  
131 131 markdown = MarkdownWithMath(HighlightRenderer(escape=False)) # hard_wrap=True to insert <br> on newline
... ...