From 7f96dedccdef0c5d4c67759c7c1b5a4721e9db1e Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sat, 22 Nov 2008 23:06:48 -0500 Subject: Updated rss extension for package refactor. However, is is still failing if a paragraph comes before the first header in source. There are no tests or documentation and I've never used it so I'm not sure what it should be doing. Leaving it as is for now. --- markdown/extensions/rss.py | 4 ++-- 1 file 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 = '\n' -class RssTreeProcessor (markdown.Treeprocessor): +class RssTreeProcessor(markdown.treeprocessors.Treeprocessor): def __init__(self, md): -- cgit v1.2.3