From: Waylan L. <wa...@gm...> - 2008-11-10 15:12:28
|
On Thu, Nov 6, 2008 at 5:28 AM, John Szakmeister <jo...@sz...> wrote: > did find that if I embed a header into a list like so: > 1. My list > > ## blah, blah > Ah, yes, this one. You only have three spaces of indent. Python-Markdown requires four or its not a child of the list item. If you check Babelmark [1], about half the implementations require four spaces and the other half just require indentation of any kind. This has been a hotly debated topic on the markdown dicussion list in the past which I'd rather not see repeated here. Regardless of which side of that argument you may fall on, I've taken the position that the current code base creates a technical limitation which forces us to require four spaces. So, I'm likely to set the ticket Yuri created for this as "wontfix" unless someone else can come up with a solution I'm not aware of. I realize that sounds a little harsh, but I don't have a better answer at this time. Of course, there is the question as to why the header isn't parsed as a header, just *not* as a child of the list item. Well, all implementations require the hash to be the *very first* character on the line or it's not a header. Again, see Babelmark [2]. Obviously, that distinction becomes blurry when only whitespace defines children of list items. It's easy to see how there can be multiple views on the correct behavior here. [1]: http://babelmark.bobtfish.net/?markdown=1.+My+list%0D%0A%0D%0A+++%23%23+blah,+blah [2]: http://babelmark.bobtfish.net/?markdown=+%23%23+blah,+blah -- ---- Waylan Limberg wa...@gm... |