Markdown generates invalid html for a list immediately followed by a quote
John Fraser
john at attacklab.net
Tue Jul 17 12:08:35 EDT 2007
On 7/16/07, Michel Fortin <michel.fortin at michelf.com> wrote:
> 1. Test
> 1. Test
> 2. Test
> 3. Test
> 4. Test
> 5. Test
> 6. Test
> 7. Test
> 8. Test
> 9. Test
> 10. Test
> 2. Test
>
> Here, using John Fraser's suggested algorithm, subitem number 10
> would be sent to the first list which is indented less, which means
> between item 1 and 2 of the outer list.
Nope, item 10 would be correctly sent to the nested list. It "belongs
to the most recent list item that's indented less." In other words,
item 1.
By "belongs to" I mean that it's a descendant of that node -- not a
sibling. So item 10 is part of the list that's nested within item 1.
John Fraser
More information about the Markdown-Discuss
mailing list