#214 new
Steve Purcell

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>&#8220;I first learned about <a href="http://redcloth.org/">Redcloth</a> several years ago.</p>
   <p>&#8220;It&#8217;s wonderful.&#8221;</p>
 ---
+name: with brackets contained in quoted paragraph
+in: |-
+  "I first learned about ["Redcloth":http://redcloth.org/] several years ago."
+html: |-
+  <p>&#8220;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>&#8220;I first learned about <a href="http://redcloth.org/">Redcloth</a> several years ago.</p>
+  <p>&#8220;It&#8217;s wonderful.&#8221;</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

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

Pages