kjdev / hoextdown

Hoextdown is an extension to Hoedown
MIT License
23 stars 15 forks source link

Block code on first line of a list item parsed inconsistently #10

Open jasharpe opened 9 years ago

jasharpe commented 9 years ago

This markdown doesn't parse as I'd expect:

*       foo

    bar

        baz

The block code callback is called with two leading spaces for "foo", and no leading spaces for "baz". This is weird and inconsistent since they are at the same indent level in the list.

jasharpe commented 9 years ago

Furthermore, in this example, "bar" is not included in the block code:

*     foo

      bar

Instead, confusingly to include "bar" in the block code, it must be indented another two spaces:

*     foo

        bar