aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2013-02-19 16:11:32 -0500
committerWaylan Limberg <waylan@gmail.com>2013-02-19 16:11:32 -0500
commit6418a7bad214fceff478b6114ef7225e32fdff21 (patch)
tree02ff45ca931ef1db1f1422fe715c4881d2ec48f7
parente5e07c3746358fc70afc2e5b0344a5e7573b444a (diff)
downloadmarkdown-6418a7bad214fceff478b6114ef7225e32fdff21.tar.gz
markdown-6418a7bad214fceff478b6114ef7225e32fdff21.tar.bz2
markdown-6418a7bad214fceff478b6114ef7225e32fdff21.zip
Updated toc extension to work with changes @ 4ff74e3.
-rw-r--r--markdown/extensions/toc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/extensions/toc.py b/markdown/extensions/toc.py
index 580d77e..f464daa 100644
--- a/markdown/extensions/toc.py
+++ b/markdown/extensions/toc.py
@@ -206,12 +206,12 @@ class TocExtension(markdown.Extension):
def extendMarkdown(self, md, md_globals):
tocext = self.TreeProcessorClass(md)
tocext.config = self.getConfigs()
- # Headerid ext is set to '>inline'. With this set to '<prettify',
+ # Headerid ext is set to '>prettify'. With this set to '_end',
# it should always come after headerid ext (and honor ids assinged
# by the header id extension) if both are used. Same goes for
# attr_list extension. This must come last because we don't want
# to redefine ids after toc is created. But we do want toc prettified.
- md.treeprocessors.add("toc", tocext, "<prettify")
+ md.treeprocessors.add("toc", tocext, "_end")
def makeExtension(configs={}):