diff options
author | Waylan Limberg <waylan@gmail.com> | 2008-11-22 23:06:48 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2008-11-22 23:06:48 -0500 |
commit | 7f96dedccdef0c5d4c67759c7c1b5a4721e9db1e (patch) | |
tree | d4794b496dd6a22ab54d261db3fec84929d87c5b /markdown/extensions | |
parent | 190b792948cc94ff51c76b224bfbcf4fa2983ba0 (diff) | |
download | markdown-7f96dedccdef0c5d4c67759c7c1b5a4721e9db1e.tar.gz markdown-7f96dedccdef0c5d4c67759c7c1b5a4721e9db1e.tar.bz2 markdown-7f96dedccdef0c5d4c67759c7c1b5a4721e9db1e.zip |
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.
Diffstat (limited to 'markdown/extensions')
-rw-r--r-- | markdown/extensions/rss.py | 4 |
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): |