diff options
author | Waylan Limberg <waylan@gmail.com> | 2008-10-19 22:30:03 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2008-10-19 22:30:03 -0400 |
commit | 15224bd352bc6c06ae05ffd78d5ecee9ea07f6ef (patch) | |
tree | fb762121f0529a15fe09dc831f3dc75d269b30d4 /markdown_extensions/codehilite.py | |
parent | c6e6f944773ee7ee2926b43dda4cdabd6f9a5058 (diff) | |
download | markdown-15224bd352bc6c06ae05ffd78d5ecee9ea07f6ef.tar.gz markdown-15224bd352bc6c06ae05ffd78d5ecee9ea07f6ef.tar.bz2 markdown-15224bd352bc6c06ae05ffd78d5ecee9ea07f6ef.zip |
Changed Postprocessors to Treeprocessors and TextPostProcessors to Postprocessors. These names more acturately depict what things do. Also updated the extensions and docs to match.
Diffstat (limited to 'markdown_extensions/codehilite.py')
-rw-r--r-- | markdown_extensions/codehilite.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/markdown_extensions/codehilite.py b/markdown_extensions/codehilite.py index 9371e79..bc75da2 100644 --- a/markdown_extensions/codehilite.py +++ b/markdown_extensions/codehilite.py @@ -175,7 +175,7 @@ class CodeHilite: # ------------------ The Markdown Extension ------------------------------- -class HilitePostprocessor(markdown.Postprocessor): +class HiliteTreeprocessor(markdown.Treeprocessor): """ Hilight source code in code blocks. """ def run(self, root): @@ -214,9 +214,9 @@ class CodeHiliteExtension(markdown.Extension): def extendMarkdown(self, md, md_globals): """ Add HilitePostprocessor to Markdown instance. """ - hiliter = HilitePostprocessor(md) + hiliter = HiliteTreeprocessor(md) hiliter.config = self.config - md.postprocessors.add("hilite", hiliter, "_begin") + md.treeprocessors.add("hilite", hiliter, "_begin") def makeExtension(configs={}): |