Placeholder in output for fenced code blocks nested in raw HTML blocks · Issue #458 · Python-Markdown/markdown (original) (raw)
When using the markdown.extensions.extra
, syntax looking like a code fence inside of HTML block elements gets rendered as gibberish instead of text, unless the HTML block has markdown=1
applied.
This test case demonstrates what I mean:
test.md.txt
The output I get from parsing that page includes a section like this:
<div>
Save this file to `test.md` and then try this:
�wzxhzdk:0�
</div>
The exact contents of the gibberish change, but it typically seems to start with wz... which suggests to me that it's rendering something that's not meant to be a string as a string.
Same behavior on Python 3.5.1, using Python-Markdown 2.6.2 and Python-Markdown 2.6.5, as well as Python 2.7.11 using Python-Markdown 2.6.5. (On two different Arch Linux machines.)