#89 ✓resolved
Ben Bleything

Unexpected change in list behavior

Reported by Ben Bleything | November 22nd, 2008 @ 02:10 AM

I came across this while converting a bunch of existing Textile content from one publishing engine to another. In RedCloth 4.x, unordered lists must start at the beginning of the line:


RedCloth::VERSION
# => 4.1.1

RedCloth.new( " * notice the leading space" ).to_html
=> "* notice the leading space"

RedCloth.new( "* no leading space this time!" ).to_html
# => "<ul>\n\t<li>no leading space this time!</li>\n</ul>"

whereas with 3.0.4, they could be indented:


RedCloth::VERSION
# => 3.0.4

RedCloth.new( " * foo" ).to_html
# => <ul>\n\t<li>foo</li>\n\t</ul>

Ideally, we'd get the ability to indent lists back, so as not to break compatibility with documents written in the "old" style.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RedCloth is a Ruby library for converting Textile into HTML

Shared Ticket Bins

People watching this ticket

Referenced by

Pages