Created
September 28, 2010 02:05
-
-
Save seanh/600277 to your computer and use it in GitHub Desktop.
PyBlosxom Python Markdown plugin as postformatter.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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