<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -13,7 +13,8 @@
 
   # links
   link_says = ( C_noactions &quot;.&quot;* &quot; &quot;* (mtext+ -- '&quot;:') ) &gt;A %{ STORE(link_text); } ;
-  link = ( &quot;[&quot;? '&quot;' link_says  '&quot;:' %A uri %{ STORE_URL(href); } :&gt; &quot;]&quot;? ) &gt;X ;
+  link = ( '&quot;' link_says  '&quot;:' %A uri %{ STORE_URL(href); } ) &gt;X ;
+  bracketed_link = ( '[&quot;' link_says  '&quot;:' %A uri %{ STORE(href); } :&gt; &quot;]&quot; ) &gt;X ;
 
   # images
   image_src = ( uri ) &gt;A %{ STORE(src) } ;
@@ -84,6 +85,7 @@
     image { INLINE(block, image); };
 
     link { PARSE_LINK_ATTR(link_text); PASS(block, name, link); };
+    bracketed_link { PARSE_LINK_ATTR(link_text); PASS(block, name, link); };
 
     code { PARSE_ATTR(text); PASS_CODE(block, text, code, opts); };
     code_tag_start { CAT(block); fgoto code_tag; };</diff>
      <filename>ext/redcloth_scan/redcloth_inline.rl</filename>
    </modified>
    <modified>
      <diff>@@ -199,4 +199,16 @@ html: '&lt;p&gt;&lt;a href=&quot;http://slashdot.org/&quot;&gt;He said it is &amp;#8220;very unlikely&amp;#822
 ---
 name: linked quoted phrase
 in: '&quot;&quot;Open the pod bay doors please, HAL.&quot;&quot;:http://www.youtube.com/watch?v=npN9l2Bd06s'
-html: '&lt;p&gt;&lt;a href=&quot;http://www.youtube.com/watch?v=npN9l2Bd06s&quot;&gt;&amp;#8220;Open the pod bay doors please, &lt;span class=&quot;caps&quot;&gt;HAL&lt;/span&gt;.&amp;#8221;&lt;/a&gt;&lt;/p&gt;'
\ No newline at end of file
+html: '&lt;p&gt;&lt;a href=&quot;http://www.youtube.com/watch?v=npN9l2Bd06s&quot;&gt;&amp;#8220;Open the pod bay doors please, &lt;span class=&quot;caps&quot;&gt;HAL&lt;/span&gt;.&amp;#8221;&lt;/a&gt;&lt;/p&gt;'
+---
+name: links containing underscores
+in: 'This is a link to a &quot;Wikipedia article about Barack&quot;:http://en.wikipedia.org/wiki/Barack_Obama'
+html: '&lt;p&gt;This is a link to a &lt;a href=&quot;http://en.wikipedia.org/wiki/Barack_Obama&quot;&gt;Wikipedia article about Barack&lt;/a&gt;&lt;/p&gt;'
+---
+name: links containing parentheses
+in: 'This is a link to a [&quot;Wikipedia article about Textile&quot;:http://en.wikipedia.org/wiki/Textile_(markup_language)]'
+html: '&lt;p&gt;This is a link to a &lt;a href=&quot;http://en.wikipedia.org/wiki/Textile_(markup_language)&quot;&gt;Wikipedia article about Textile&lt;/a&gt;&lt;/p&gt;'
+---
+name: links contained in parentheses
+in: 'This is a regular link (but in parentheses: &quot;Google&quot;:http://www.google.com)'
+html: '&lt;p&gt;This is a regular link (but in parentheses: &lt;a href=&quot;http://www.google.com&quot;&gt;Google&lt;/a&gt;)&lt;/p&gt;'
\ No newline at end of file</diff>
      <filename>test/links.yml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dbad718a9e8436e1fdf1fb436c2a8ae238499f5c</id>
    </parent>
  </parents>
  <author>
    <name>Jason Garber</name>
    <email>jg@jasongarber.com</email>
  </author>
  <url>http://github.com/jgarber/redcloth/commit/dc5512feced90e7f62ffc158e86ceb22441990a2</url>
  <id>dc5512feced90e7f62ffc158e86ceb22441990a2</id>
  <committed-date>2008-07-21T04:31:05-07:00</committed-date>
  <authored-date>2008-07-21T04:31:05-07:00</authored-date>
  <message>Accept links endinng with special characters when enclosed in square brackets. [#16 state:resolved]</message>
  <tree>b368b6af6d7991bbfa6e8b5513bc4077041ffb75</tree>
  <committer>
    <name>Jason Garber</name>
    <email>jg@jasongarber.com</email>
  </committer>
</commit>
