Skip to content

Instantly share code, notes, and snippets.

@seanh
Created September 28, 2010 01:51
Show Gist options
  • Select an option

  • Save seanh/600262 to your computer and use it in GitHub Desktop.

Select an option

Save seanh/600262 to your computer and use it in GitHub Desktop.
The PyBlosxom Python Markdown plugin as a preformatter.
import markdown
md = markdown.Markdown(output_format='html4',extensions=['extra',])
def cb_preformat(args):
if args['parser'] == 'markdown':
html = md.convert(''.join(args['story']))
md.reset()
return html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment