From 178093e84a2a66f39af109f81cbb184c9fe04ef7 Mon Sep 17 00:00:00 2001 From: Zach Smith Date: Wed, 25 Apr 2018 22:37:27 -0400 Subject: Turns out we were advertising smartypants but not making good on it --- pycco/main.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pycco/main.py b/pycco/main.py index f27420f..b49cfb9 100644 --- a/pycco/main.py +++ b/pycco/main.py @@ -278,9 +278,14 @@ def highlight(sections, language, preserve_paths=True, outdir=None): docs_text = unicode(section["docs_text"].decode('utf-8')) except NameError: docs_text = section['docs_text'] - section["docs_html"] = markdown(preprocess(docs_text, - preserve_paths=preserve_paths, - outdir=outdir)) + section["docs_html"] = markdown( + preprocess( + docs_text, + preserve_paths=preserve_paths, + outdir=outdir + ), + extensions=['markdown.extensions.smarty'] + ) section["num"] = i return sections -- cgit v1.2.1