Our Markdown guide states that “Markdown wraps a code block in both <pre> and <code> tags.”. This doesn’t seems to be the case when I do a code block inside ordered or unordered lists and when the markdown file is displayed on your website. (Again, I followed here to put a code block inside a list: https://gist.github.com/clintel/1155906). When it’s displayed on your web site, the code block is wrapped in <p><code>...</code></p>, resulting in multiple lines of code being displayed in one line. Other markdown to html tools rendered the correct html format. If I use browser’s dev tool to change <p> </p>to <pre></pre>, it also displays correctly.
Issue #12669 duplicate