On Aug 16, 2012, at 5:45 AM, Boris Le Ninivin <boris.lenini...@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/>

_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss

Reply via email to