From eaa3160095aa72424ccb57c1e59049f39091aa07 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 20 Jan 2012 06:39:18 -0500 Subject: Fixed #73. Codehilite now works in footnotes. The footnotes treeprocessor must be the first one run so that all others, including codehilite's, can run on the contents of the footnote div which is created and inserted by the footnotes treeprocessor. Thanks to startling for the report. --- markdown/extensions/codehilite.py | 2 +- markdown/extensions/footnotes.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/markdown/extensions/codehilite.py b/markdown/extensions/codehilite.py index 6f0da44..5df820f 100644 --- a/markdown/extensions/codehilite.py +++ b/markdown/extensions/codehilite.py @@ -216,7 +216,7 @@ class CodeHiliteExtension(markdown.Extension): """ Add HilitePostprocessor to Markdown instance. """ hiliter = HiliteTreeprocessor(md) hiliter.config = self.getConfigs() - md.treeprocessors.add("hilite", hiliter, "_begin") + md.treeprocessors.add("hilite", hiliter, "amp_substitute") -- cgit v1.2.3