numbered list bug in markdown.pl?

Waylan Limberg waylan at gmail.com
Mon Jul 10 10:03:28 EDT 2006


On 7/9/06, Carl-Johan Kihlbom <kihlbom at gmail.com> wrote:

> I'm guessing it's because you have different indent levels. Try

> removing the spaces before 1-9.


I'll second that. In my observation Python is very picky about the
four spaces of indent, while Perl seems to notice any amount of indent
(one space is often enough) even though the syntax[1] tells us we need
four spaces. To see what I mean, try adding a couple more spaces to
1-9 in your example and run it through both to see what you get.

[1]: http://daringfireball.net/projects/markdown/syntax


>

> On 7/7/06, Jacob Rus <jrus at hcs.harvard.edu> wrote:

> > Hi,

> >

> > I'm getting what I believe to be a bug. If I put the following in markdown:

> >

> > 1. This is a numbered list

> > 2. Blah

> > 9. This is another list item

> > 10. Ok, weird bug here

> > 11. It's really bothering me

> >

> > And when I run it through markdown.pl 1.01 I get out the following:

> >

> > <ol>

> > <li>This is a numbered list</li>

> > <li>Blah</li>

> > <li>This is another list item

> > <ol>

> > <li>Ok, weird bug here</li>

> > <li>It's really bothering me</li>

> > </ol></li>

> > </ol>

> >

> > Interestingly, I don't get this from the [python markdown][1], instead

> > getting one list, as desired.

> >

> > Anyone know what's up? Or has this already been fixed?

> >

> > -Jacob

> >

> > [1]: http://www.freewisdom.org/projects/python-markdown/

> >

> > _______________________________________________

> > Markdown-Discuss mailing list

> > Markdown-Discuss at six.pairlist.net

> > http://six.pairlist.net/mailman/listinfo/markdown-discuss

> >

> _______________________________________________

> Markdown-Discuss mailing list

> Markdown-Discuss at six.pairlist.net

> http://six.pairlist.net/mailman/listinfo/markdown-discuss

>



--
----
Waylan Limberg
waylan at gmail.com


More information about the Markdown-Discuss mailing list