#48 ✓resolved
Jason

over-eager quotes

Reported by Jason | September 4th, 2008 @ 03:52 PM | in 4.0.4

It's not clear that this is incorrect, but it's worth pointing out:


Unmatched "quote "link":http://blah.com

produces this in 3.x: (as I would expect)


<p>Unmatched &#8220;quote <a href="http://blah.com">link</a></p>

and this in 4.x: (unmatched quote steals one of the quotes from the link)


<p>Unmatched &#8220;quote &quot;link&#8221;:http://blah.com</p>

(By the way, great work, Jason! The new version is a huge improvement!)

Comments and changes to this ticket

  • Nathaniel Talbott

    Nathaniel Talbott September 11th, 2008 @ 01:51 PM

    Another instance of overeager quotes:

    
    irb(main):012:0> RedCloth::VERSION=> 4.0.3
    irb(main):013:0> RedCloth.new(%("quote" text "quote" text "link":http://google.com)).to_html=> "<p><a href=\"http://google.com\">quote&quot; text &#8220;quote&#8221; text &quot;link</a></p>"
    

    I tried using brackets to fix it, but no dice:

    
    irb(main):014:0> RedCloth.new(%("quote" text "quote" text ["link":http://google.com])).to_html
    => "<p><a href=\"http://google.com\">quote&quot; text &#8220;quote&#8221; text [&quot;link</a>]</p>"
    
  • Jason Garber

    Jason Garber September 19th, 2008 @ 02:58 PM

    • State changed from “new” to “resolved”

    (from [5ed0c5429c6082580de47dc8717d17fef785ea55]) Reduced link eagerness so it wouldn't include preceding quoted phrases.

    [#48 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.

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

Referenced by

Pages