arturadib / strapdown

Instant and elegant Markdown documents in the browser
http://strapdownjs.com
MIT License
2.48k stars 410 forks source link

Code blocks inside lists with tab indenting rendered as plain text #11

Open elmimmo opened 11 years ago

elmimmo commented 11 years ago

When using tabs, not spaces, for indenting, and trying to add a code block inside a list item, the code block will not be rendered as such if the bullet/number and the text are separated by a tab too:

*   Item one

        code block inside item one 

*   item two

Note that, in spite of how Github may render this, I used tabs, not spaces, to indent and to pad the text in the list items.

Neither Markdown Web Dingus nor Github have an issue with this case and displays those code blocks as code blocks.