X-Git-Url: https://projects.mako.cc/source/pyblosxom-markdown2/blobdiff_plain/a5b61fa1ca3d5fddb5071421193bbfdf5bcf68b0..682a90a4b27cb63d1cb980dacf1045738f31d59d:/markdown-plugin.py diff --git a/markdown-plugin.py b/markdown-plugin.py index d30e85b..e8bba85 100644 --- a/markdown-plugin.py +++ b/markdown-plugin.py @@ -44,7 +44,7 @@ _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