
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
-
Jason Garber November 22nd, 2008 @ 07:59 AM
- State changed from new to open
- Milestone cleared.
- Tag set to backward compatibility, lists
I agree. I'll see what I can do.
-
Jason Garber February 11th, 2009 @ 03:06 PM
- State changed from open to resolved
(from [2bdd829141c041c3e49ba59a921b687faa42f6d9]) Allow leading spaces on lists for backward compatibility with RedCloth 3.x. [#89 state:resolved] http://github.com/jgarber/redclo...
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.
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
People watching this ticket
Referenced by
-
89 Unexpected change in list behavior (from [2bdd829141c041c3e49ba59a921b687faa42f6d9]) Allow l...