aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--markdown/extensions/rss.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/extensions/rss.py b/markdown/extensions/rss.py
index fa05fef..b7215df 100644
--- a/markdown/extensions/rss.py
+++ b/markdown/extensions/rss.py
@@ -54,11 +54,11 @@ class RssExtension (markdown.Extension):
# Insert a tree-processor that would actually add the title tag
treeprocessor = RssTreeProcessor(self)
treeprocessor.ext = self
- md.treeprocessors.append(treeprocessor)
+ md.treeprocessors['rss'] = treeprocessor
md.stripTopLevelTags = 0
md.docType = '<?xml version="1.0" encoding="utf-8"?>\n'
-class RssTreeProcessor (markdown.Treeprocessor):
+class RssTreeProcessor(markdown.treeprocessors.Treeprocessor):
def __init__(self, md):