
Over-zealous ul tag
Reported by Paweł Gościcki | October 11th, 2008 @ 08:32 AM | in 4.2.0
I'd expect the following to produce a strong tag inside a paragraph:
>> RedCloth.new("*- I'd expect it to be a bolded paragraph.*").to_html
=> "<ul style="vertical-align:middle;">\n\t<li>I’d expect it to be a bolded paragraph.*</li>\n</ul>"
Textile 2.0 (http://textile.thresholdstate.com/) produces:
<p><strong>- I’d expect it to be a bolded paragraph.</strong></p>
I know the '-' following '*' is treated as a list attribute (giving vertical align), although I don't quite like it behaving this way. RedCloth 3.04 was in line with Textile 2.0 and produced a strong tag inside a paragraph.
Comments and changes to this ticket
-
Paweł Gościcki October 11th, 2008 @ 05:08 PM
While working on the workaround I've found another interesting case of this:
>> RedCloth.new("blah\n*- Yes?*").to_html => "<p style="vertical-align:middle;">blah</p>\n<ul>\n\t<li>Yes?*</li>\n</ul>"
Notice how the vertical-align style got assigned to the wrong tag (might be another bug?).
Btw: I haven't found anything about vertical-align style modifier in the official documentation.
-
Jason Garber March 17th, 2009 @ 05:21 AM
- Milestone set to 4.2.0
- State changed from new to open
-
Stephan March 28th, 2009 @ 04:28 PM
I guess I've got an simillar encoutner with the ul tag:
@@@ruby RedCloth.new("222 Something I would expect to be just a little bit emphasized").to_html => "
- \n\t
- Something* I would expect to be just a little bit emphasized
- \n
where @@@ruby >> RedCloth.new(" *222 Something* I would expect to be just a little bit emphasized").to_html => "<strong>222 Something</strong> I would expect to be just a little bit emphasized"
gives the expected result
-
-
Stephan April 22nd, 2009 @ 10:41 AM
since I'm unable to post readable here… http://gist.github.com/99828
-
Jason Garber June 2nd, 2009 @ 03:11 PM
- State changed from open to resolved
(from [05cd533f035fe68095fac60540107b2d84cca3ec]) Removed vertical alignment in lists. It doesn't make sense and it conflicts with other things. [#73 state:resolved] http://github.com/jgarber/redcloth/commit/05cd533f035fe68095fac6054...
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
-
73 Over-zealous ul tag (from [05cd533f035fe68095fac60540107b2d84cca3ec]) Removed...