
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
-
Jason Garber January 29th, 2009 @ 05:00 PM
- State changed from new to resolved
(from [b753dc625207861f8249cbeb98dc18b676ac1330]) Don't allow square brackets inside lang attribute so double square brackets are interpreted like Textile 2 and RedCloth 3. [#101 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
-
101 Problem with double square brackets (from [b753dc625207861f8249cbeb98dc18b676ac1330]) Don't a...