aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorYuchen Pei <me@ypei.me>2018-06-03 22:22:43 +0200
committerYuchen Pei <me@ypei.me>2018-06-03 22:22:43 +0200
commitd4d048e66b16a3713caec957e94e8d7e80e39368 (patch)
tree1aa7c6640d56de3741f23073bb5d6f1e3db61e17 /engine
parent2e38d28086714175d680f9d4541c735ca793d2b7 (diff)
fixed mathjax conversion from md
Diffstat (limited to 'engine')
-rw-r--r--engine/engine.py2
1 files changed, 1 insertions, 1 deletions
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')