From: Waylan L. <way...@ic...> - 2014-01-25 00:44:27
|
Adrien, As documented[1], Python-Markdown requires four spaces of indent for nested lists (as the rules require). However, I doubt you will get your nested list to number as 3.1, 3.2, ... HTML lists do not support numbering like that, so there isn't any way to make markdown support it. Your example should look like this: 1. item 1 2. item 2 3. 1. item 3.1 2. item 3.2 4. item 4 That works in almost all implementations [2]. Hope that helps. Waylan Limberg [1]: http://pythonhosted.org/Markdown/index.html#differences [2]: http://johnmacfarlane.net/babelmark2/?normalize=1&text=1.+item+1+%0A2.+item+2+%0A3.+%0A++++1.+item+3.1+%0A++++2.+item+3.2+%0A4.+item+4+ On 1/24/2014 9:41:08 AM, "Adrien Saladin" <adr...@gm...> wrote: >Hi list, > >Is it possible to create sub-lists with python-markdown ? > >I would like something like: > >1. item 1 >2. item 2 >3. > 3.1 item 3.1 > 3.2 item 3.2 >4. item 4 > >I tried some variations, including those described here: >https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#lists >, but it doesn't seem to work. > >I just wanted to know if something like this already existed. >If not, would it be possible to write an extension to handle that ? > >Thanks, >Adrien > >------------------------------------------------------------------------------ >CenturyLink Cloud: The Leader in Enterprise Cloud Services. >Learn Why More Businesses Are Choosing CenturyLink Cloud For >Critical Workloads, Development Environments & Everything In Between. >Get a Quote or Start a Free Trial Today. >http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk >_______________________________________________ >Python-markdown-discuss mailing list >Pyt...@li... >https://lists.sourceforge.net/lists/listinfo/python-markdown-discuss |