Skip to content

Instantly share code, notes, and snippets.

@seanh
Created September 28, 2010 02:05
Show Gist options
  • Select an option

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

Select an option

Save seanh/600277 to your computer and use it in GitHub Desktop.
PyBlosxom Python Markdown plugin as postformatter.
import markdown
md = markdown.Markdown(output_format='html4',extensions=['extra',])
def cb_postformat(args):
entry_data = args['entry_data']
entry_data['body'] = md.convert(''.join(entry_data['body']))
md.reset()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment