With PHP Markdown Extra (not Python, I know, but relevant), you can do this by adding an attribute markdown=1to the block level element.
I'm interested in pure-Python libraries that also support the Markdown Extra syntax.
Of course, one very efficient hack will call PHP and PHP Markdown Extra through standard input from your Python script.
source
share