From d4d048e66b16a3713caec957e94e8d7e80e39368 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Sun, 3 Jun 2018 22:22:43 +0200 Subject: fixed mathjax conversion from md --- engine/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/engine.py') diff --git a/engine/engine.py b/engine/engine.py index 7cb45e9..0fb95e0 100644 --- a/engine/engine.py +++ b/engine/engine.py @@ -16,7 +16,7 @@ def item_from_path(path): res.setdefault('name', os.path.basename(x)) if ext in ['.md', '.markdown']: logging.info('Converting {}...'.format(path)) - res['body'] = pypandoc.convert_text(matchres.group(2), 'html', format='md') + res['body'] = pypandoc.convert_text(matchres.group(2), 'html', format='md', extra_args=['--mathjax']) elif ext == '.wiki': logging.info('Converting {}...'.format(path)) res['body'] = pypandoc.convert_text(matchres.group(2), 'html', format='vimwiki') -- cgit v1.2.3