More Parsedown Edge Cases

1. Classes on code blocks

~~~~~ .language-python
import os, hashlib
print hashlib.sha1(os.urandom(32)).hexdigest()

This used to print out a proper code block, with class="language-python":

<pre><code class="language-python">import os, hashlib
print hashlib.sha1(os.urandom(32)).hexdigest()

... but no more. Parsedown sees the .language-python as something that breaks the code block declaration and just prints out a paragraph with all of that in it:

<p><del>~</del> .language-python
import os, hashlib
print hashlib.sha1(os.urandom(32)).hexdigest()</p>

(```.language-python also doesn't work)

2. Markdown="1"

div class="callout info" markdown="1"
#### Note:

lorem ipsum dolor sit amit

This no longer seems to work in Parsedown (I had to remove the < and > to get it to render right). The < > get converted to html entities and the whole thing just gets spit out in a paragraph.

Answered by Jason Varga!
>>>>>>> Answered <<<<<<<
7 Replies