From b8d51191abdbf85289ae70ceac11b456c4b57716 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Sun, 16 Jan 2022 18:38:52 -0300 Subject: [PATCH] Improve mathjax integration --- generate.py | 2 +- templates/file.html | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/generate.py b/generate.py index bb4ba41..d26c3a4 100755 --- a/generate.py +++ b/generate.py @@ -106,7 +106,7 @@ class File: # self.content = markdowner.convert(f.read()) - self.content = subprocess.check_output(['pandoc', '-f', 'latex', '-t', 'html', + self.content = subprocess.check_output(['pandoc', '--mathjax=templates/mathjax/es5/tex-mml-chtml.js', '-f', 'latex', '-t', 'html', '%s/%s' % (root, name)]).decode() def expand_html(self): diff --git a/templates/file.html b/templates/file.html index d08fee7..88b7603 100644 --- a/templates/file.html +++ b/templates/file.html @@ -6,13 +6,9 @@