views:

160

answers:

1

Is there an extra for Python Markdown that supports Markdown inside HTML block elements, e.g. div, p

i.e. is there a way to convert this:

<div id="content">
    [Google](http://www.google.com)
</div>

to

<div id="content">
    <a href="http://www.google.com&gt;Google&lt;/a&gt;
</div>

using Python Markdown or a Python Markdown extension? I'm looking for something similar to this feature in PHP Markdown Extra

A: 

According to this: http://daringfireball.net/projects/markdown/syntax#html

You would have to use a <span> rather than a <div>. Further explanation is available at the above link.

Curt Micol