Disable LaTeX-specific mathematics tokens

This commit is contained in:
RunasSudo 2019-12-15 14:08:27 +11:00
parent 541183ddfa
commit 4ccf1db4b2
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -35,7 +35,10 @@ def format(fstr, *args, **kwargs):
class LaTeXRenderer(mistletoe.latex_renderer.LaTeXRenderer): class LaTeXRenderer(mistletoe.latex_renderer.LaTeXRenderer):
def __init__(self, *extras): def __init__(self, *extras):
super().__init__(*extras) #super().__init__(*extras)
# Omit LaTeX tokens
self.packages = {}
mistletoe.base_renderer.BaseRenderer.__init__(self, *extras)
self.render_map['CrossReference'] = self.render_cross_reference self.render_map['CrossReference'] = self.render_cross_reference