Bugs: Browse | Submit New | Admin
Using Maruku 0.5.4 and Syntax 1.0.0 and the following markdown sample #This is a test Here is a paragraph. * Item 1 * Item 2 * Item 3 In this sample the list is indented 3 characters. The list item does not render as a list. If the list indention is <= 1 then the list is marked correctly but according to the syntax documentation at http://daringfireball.net/projects/markdown/syntax#list: "List markers typically start at the left margin, but may be indented by up to three spaces." Not a big deal, but it would be nice if it could be fixed. Great tool! Thanks, Scott
Add A Comment:
Date: 2007-09-27 11:22 Sender: Thomas Nichols Andrea, Are you still wrestling with this, or will Maruku not support > 1 character indent for list markers? Awesome code, btw - thanks :-) -- Thomas.
Date: 2007-06-22 10:13 Sender: David Welton I can confirm Andrea's one-item-list bug: require 'rubygems' require 'maruku' txt = "1. Foo\r\n * Bar\r\n\r\n* Bee\r\n * Bop" m = Maruku.new(txt) puts m.inspect Produces: md_el(:document,[ md_el(:ol,[md_el(:li_span,["Foo * Bar"],{:want_my_paragraph=>false},[])],{},[]), md_el(:ul,[md_el(:li_span,["Bee * Bop"],{:want_my_paragraph=>false},[])],{},[]) ],{},[]) Of course, Bar and Bop should be their own lists.
Date: 2007-03-18 20:20 Sender: Rick Frankel more: * a ** a1 ** a2 * b generates: <ul><li><p>a</p><ul>... ^^^ when it should not wrap "a" in a paragraph. also, test/unittests/list7.md, which should test for these breakages is basically empty.
Date: 2007-03-04 21:25 Sender: Andrea Censi Not yet solved, but here's a related bug: 1. point one 2. point two * sub point * sub point 3. point three works. But 1. point one 2. point two * sub point 3. point three does not.
Date: 2007-02-26 21:41 Sender: Andrea Censi Hello Scott, thanks for reporting. I confirm that it is a bug. The fix, however, is not straightforward to implement. My regression tests say that if I implement this, some other corner cases break (the Markdown specification is very fuzzy). I'll try to find a solution.