Closed weakish closed 11 years ago
Confirmed for the current version of maruku. Reason lies in `lib/maruku/input/type-detection.rb' (line 60ff.):
# Something is wrong with how we parse lists! :-(
#return :ulist if l =~ /^[ ]{0,3}([\*\-\+])\s+.*\w+/
#return :olist if l =~ /^[ ]{0,3}\d+\..*\w+/
return :ulist if l =~ /^[ ]{0,1}([\*\-\+])\s+.*/
return :olist if l =~ /^[ ]{0,1}\d+\.\s+.*/
The regexes accept only one or two leading spaces.
PS. Simply changing {0,1} to {0,3} or using the commented out lines breaks some test cases.
PPS. kramdown, pandoc, and the "original" Markdown.pl all work as expected.
Quoted from markdown syntax:
But Marku only recognizes lists indented by zero or one space.
Example: