summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Smith <zd@zdsmith.com>2018-04-25 22:37:27 -0400
committerZach Smith <zd@zdsmith.com>2018-04-25 22:37:27 -0400
commit178093e84a2a66f39af109f81cbb184c9fe04ef7 (patch)
tree6718d71aa8361aea632df55354f8bed901f6c85b
parentf1a50149f96a0ed4c62c3cc7915684ef3e1d263f (diff)
downloadpycco-178093e84a2a66f39af109f81cbb184c9fe04ef7.tar.gz
Turns out we were advertising smartypants but not making good on it
-rw-r--r--pycco/main.py11
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