X-Git-Url: https://projects.mako.cc/source/pyblosxom-markdown2/blobdiff_plain/de78375c684a2c81e782f00cffa0d0814c7ba82e..682a90a4b27cb63d1cb980dacf1045738f31d59d:/markdown-plugin.py diff --git a/markdown-plugin.py b/markdown-plugin.py index 9a5e9e1..e8bba85 100644 --- a/markdown-plugin.py +++ b/markdown-plugin.py @@ -40,11 +40,11 @@ USA. """ PREFORMATTER_ID = 'markdown' FILENAME_EXTENSIONS = ('txt','text','mkdn','markdown','md','mdown','markdn','mkd') -_version__ = '0.2' +_version__ = '0.3' __author__ = 'Benjamin Mako Hill ' __author__ = 'seanh ' -import re,codecs +import codecs import markdown from Pyblosxom import tools @@ -72,9 +72,7 @@ def cb_preformat(args): return parse(''.join(args['story'])) def parse(story): - # Convert the ASCII text to HTML with python-markdown. html = md.convert(story) - # Reset python-markdown ready for next time. md.reset() return html