From 23f81a28d83c50b0430b1f880e0dec70ab166eff Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Wed, 6 Oct 2021 11:27:19 +0100 Subject: [PATCH] Tell pandoc to mathjax for html math --- notes2web.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notes2web.py b/notes2web.py index 4448065..a5618b7 100755 --- a/notes2web.py +++ b/notes2web.py @@ -200,7 +200,8 @@ def main(args): html = pypandoc.convert_file(filename, 'html', extra_args=[ f'--template={args.template}', '-V', f'filehistory={filehistory}', - '-V', f'licenseFull={notes_license}' + '-V', f'licenseFull={notes_license}', + '--mathjax' ]) pathlib.Path(output_filename).parent.mkdir(parents=True, exist_ok=True)