diff options
author | Zach Smith <zd@zdsmith.com> | 2018-04-25 22:37:27 -0400 |
---|---|---|
committer | Zach Smith <zd@zdsmith.com> | 2018-04-25 22:37:27 -0400 |
commit | 178093e84a2a66f39af109f81cbb184c9fe04ef7 (patch) | |
tree | 6718d71aa8361aea632df55354f8bed901f6c85b | |
parent | f1a50149f96a0ed4c62c3cc7915684ef3e1d263f (diff) | |
download | pycco-178093e84a2a66f39af109f81cbb184c9fe04ef7.tar.gz |
Turns out we were advertising smartypants but not making good on it
-rw-r--r-- | pycco/main.py | 11 |
1 files 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 |