You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This removes the :li_span element type, and fixes how Maruku chooses to wrap list items in paragraphs in many cases (though not all). There are still quite a few list cases that still fail, but this fixes#26, fixes#30, fixes#64, fixes#67, and fixes#72, and activates many of the pending list tests.
Is it possible with maruki 0.6.0 to create a nested list? I left a comment on #55 with the syntax I'm trying. Can't seem to find the magic indentation to create proper nested lists.
stomar
pushed a commit
to stomar/maruku
that referenced
this issue
Apr 30, 2014
Quoted from markdown syntax:
But Marku only recognizes lists indented by zero or one space.
Example:
The text was updated successfully, but these errors were encountered: