aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2013-09-25 11:56:40 +0400
committerDmitry Shachnev <mitya57@gmail.com>2013-09-25 14:33:05 +0400
commited399ac3da4dddfd676bedada42a3aa4d4d80e1e (patch)
tree9d802df5c4cc744ac6c4915ea9c68faf3a9dabec /setup.py
parent85e1a0c29c3f659fa1f36e94788a00b3e864b9d3 (diff)
downloadmarkdown-ed399ac3da4dddfd676bedada42a3aa4d4d80e1e.tar.gz
markdown-ed399ac3da4dddfd676bedada42a3aa4d4d80e1e.tar.bz2
markdown-ed399ac3da4dddfd676bedada42a3aa4d4d80e1e.zip
Add new "permalink" option to toc extension
and use it in our docs
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 826de9d..0702f6b 100755
--- a/setup.py
+++ b/setup.py
@@ -144,7 +144,8 @@ class build_docs(Command):
else:
with codecs.open('docs/_template.html', encoding='utf-8') as f:
template = f.read()
- self.md = markdown.Markdown(extensions=['extra', 'toc', 'meta', 'admonition', 'smarty'])
+ self.md = markdown.Markdown(
+ extensions=['extra', 'toc(permalink=true)', 'meta', 'admonition', 'smarty'])
for infile in self.docs:
outfile, ext = os.path.splitext(infile)
if ext == '.txt':