#101 ✓resolved

Problem with double square brackets

Reported by Sid | January 29th, 2009 @ 04:53 PM

If you do the following in irb (using RedCloth 4.1.1)...

RedCloth.new("some @[[code]]@").to_html

...you get the following result...

<p>some <code lang=\"[code\">]</code></p>

...which isn't what I'd expect and isn't what you get from old RedCloth.

I know single square brackets can be used to add the lang attribute to a tag but this looks like they are applying when they shouldn't. I'm using the double square bracket stuff in a wiki I've written and which I'm currently updating to use RedCloth 4.

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