
Links contained in [] within quoted paragraphs aren't recognized
Reported by Steve Purcell | April 11th, 2011 @ 07:40 AM
Regular label links work fine within quoted paras, but wrapping them in [] stops them from getting recognized by textile. This seems to be a recent regression.
Here are 2 failing tests:
diff --git a/spec/fixtures/links.yml b/spec/fixtures/links.yml
index 5e1b957..e9b92ec 100644
--- a/spec/fixtures/links.yml
+++ b/spec/fixtures/links.yml
@@ -263,6 +263,21 @@ html: |-
<p>“I first learned about <a href="http://redcloth.org/">Redcloth</a> several years ago.</p>
<p>“It’s wonderful.”</p>
---
+name: with brackets contained in quoted paragraph
+in: |-
+ "I first learned about ["Redcloth":http://redcloth.org/] several years ago."
+html: |-
+ <p>“I first learned about <a href="http://redcloth.org/">Redcloth</a> several years ago."</p>
+---
+name: with brackets contained in multi-paragraph quotes
+in: |-
+ "I first learned about ["Redcloth":http://redcloth.org/] several years ago.
+
+ "It's wonderful."
+html: |-
+ <p>“I first learned about <a href="http://redcloth.org/">Redcloth</a> several years ago.</p>
+ <p>“It’s wonderful.”</p>
+---
name: as html in notextile contained in multi-paragraph quotes
in: |-
"Here is a <notextile><a href="http://redcloth.org/">link</a></notextile>.
Comments and changes to this ticket
-
Jason Garber April 25th, 2011 @ 11:40 AM
It's crazy, isn't it? I spend hours trying to fix bugs, but it's a
house of cards. I'm working on a replacement version of RedCloth in
which I'll actually be able to fix bugs in a timely manner
(hopefully). https://github.com/jgarber/redcloth-parslet
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