diff options
author | Waylan Limberg <waylan@gmail.com> | 2008-11-20 20:08:33 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2008-11-20 20:08:33 -0500 |
commit | 1739006772b2fd68348ac35acb04fd6ac26f7d87 (patch) | |
tree | 60a50bba8b819bc35c98652a0b8b5dfb795d9fee | |
parent | 478f63d2a51f4bd1712439e610f241bf501d0576 (diff) | |
download | markdown-1739006772b2fd68348ac35acb04fd6ac26f7d87.tar.gz markdown-1739006772b2fd68348ac35acb04fd6ac26f7d87.tar.bz2 markdown-1739006772b2fd68348ac35acb04fd6ac26f7d87.zip |
Updated footnotes extension for new refactor.
-rw-r--r-- | markdown/extensions/footnotes.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/markdown/extensions/footnotes.py b/markdown/extensions/footnotes.py index f65a79d..6dacab7 100644 --- a/markdown/extensions/footnotes.py +++ b/markdown/extensions/footnotes.py @@ -67,7 +67,7 @@ class FootnoteExtension(markdown.Extension): def reset(self): """ Clear the footnotes on reset. """ - self.footnotes = markdown.OrderedDict() + self.footnotes = markdown.odict.OrderedDict() def findFootnotesPlaceholder(self, root): """ Return ElementTree Element that contains Footnote placeholder. """ @@ -130,7 +130,7 @@ class FootnoteExtension(markdown.Extension): return div -class FootnotePreprocessor(markdown.Preprocessor): +class FootnotePreprocessor(markdown.preprocessors.Preprocessor): """ Find all footnote references and store for later use. """ def __init__ (self, footnotes): @@ -238,11 +238,11 @@ class FootnotePreprocessor(markdown.Preprocessor): return items, lines[i:] -class FootnotePattern(markdown.Pattern): +class FootnotePattern(markdown.inlinepatterns.Pattern): """ InlinePattern for footnote markers in a document's body text. """ def __init__(self, pattern, footnotes): - markdown.Pattern.__init__(self, pattern) + markdown.inlinepatterns.Pattern.__init__(self, pattern) self.footnotes = footnotes def handleMatch(self, m): @@ -256,7 +256,7 @@ class FootnotePattern(markdown.Pattern): return sup -class FootnoteTreeprocessor(markdown.Treeprocessor): +class FootnoteTreeprocessor(markdown.treeprocessors.Treeprocessor): """ Build and append footnote div to end of document. """ def __init__ (self, footnotes): @@ -280,7 +280,7 @@ class FootnoteTreeprocessor(markdown.Treeprocessor): else: root.append(footnotesDiv) -class FootnotePostprocessor(markdown.Postprocessor): +class FootnotePostprocessor(markdown.postprocessors.Postprocessor): """ Replace placeholders with html entities. """ def run(self, text): |