]> projects.mako.cc - pyblosxom-markdown2/commitdiff
Remove a seemingly unnecessary cb_preformat function.
authorSean Hammond <seanhammond@lavabit.com>
Tue, 28 Sep 2010 01:32:49 +0000 (02:32 +0100)
committerSean Hammond <seanhammond@lavabit.com>
Tue, 28 Sep 2010 01:32:49 +0000 (02:32 +0100)
markdown-plugin.py

index e8fa4155bba6f562103aec7445d58762275b26df..01fc0225dd1170b4032f7962d7d9e722b752760c 100644 (file)
@@ -38,7 +38,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 USA.
 
 """
 USA.
 
 """
-PREFORMATTER_ID = 'markdown'
 FILENAME_EXTENSIONS = ('txt','text','mkdn','markdown','md','mdown','markdn','mkd')
 _version__ = '0.3'
 __author__ = 'Benjamin Mako Hill <mako@atdot.cc>'
 FILENAME_EXTENSIONS = ('txt','text','mkdn','markdown','md','mdown','markdn','mkd')
 _version__ = '0.3'
 __author__ = 'Benjamin Mako Hill <mako@atdot.cc>'
@@ -59,10 +58,6 @@ def cb_entryparser(args):
                args[FILENAME_EXTENSION] = readfile
        return args
 
                args[FILENAME_EXTENSION] = readfile
        return args
 
-def cb_preformat(args):
-       if args['parser'] == PREFORMATTER_ID:
-               return parse(''.join(args['story']))
-
 def parse(story):
        html = md.convert(story)
        md.reset()
 def parse(story):
        html = md.convert(story)
        md.reset()

Benjamin Mako Hill || Want to submit a patch?