pre in lists

Rob McBroom mailinglist0 at skurfer.com
Thu Aug 16 08:43:12 EDT 2012


On Aug 16, 2012, at 5:45 AM, Boris Le Ninivin <boris.leninivin at gmail.com> wrote:


> When I try to use the code block syntax in a list, i.e :

>

> 1. some text

> 2. some code :

> My first line of code

> The second one

> Some indented code

> Another line

> 3. end of the list

>

> it doesn't work. Yet it appears that the syntax is valid (I checked on the w3 validator). I would need that functionality. Would it be possible to improve the markdown parser by adding it ?


Code blocks in list items need to be indented 8 spaces instead of 4, and (for some implementations anyway) there needs to be an empty line before the first line of code. I think that's documented somewhere, but I'm too lazy to check.

--
Rob McBroom
<http://www.skurfer.com/>



More information about the Markdown-Discuss mailing list