|
ticket id 000033 |
status closed |
priority ??? |
assigned to Waylan |
Reported by: Charles Winebrinner Component: |
I have a page with several paragraphs followed by a list of links, as shown below. Each link is followed by two spaces, so that a break will be inserted after each link (in theory). From the Markdown Web site: "When you do want to insert a
break tag using Markdown, you end a line with two or more spaces, then type return." Prior to upgrading to 2.0, the list displayed correctly, but now it chokes.
Input:
Resource links:
[LinkName](http://www.website.tld/ "Title")
[LinkName](http://www.website.tld/ "Title")
[LinkName](http://www.website.tld/ "Title")
Expected output:
<p>Publication resources:</p>
<p><a href="http://www.website.tld/" title="Title">LinkName</a><br />
<a href="http://www.website.tld/" title="Title">LinkName</a><br />
<a href="http://www.website.tld/" title="Title">LinkName</a><br /></p>
Actual output:
<p>Publication resources:</p>
<p><a href="http://www.website.tld/" title="Title")
[LinkName](http://www.website.tld/ "Title")
[LinkName](http://www.website.tld/ "Title">LinkName</a></p>
Comments
Waylan May 8, 2009: Thanks for the report. It appears that this problem only occurs when two or more consecutive links contain titles. Remove the titles and the problem goes away. In fact, it has nothing to do with the line breaks (so I've changed the title). The most basic example that breaks:
[link](http://example.com "title") [link2](http://example2.com "title2")
becomes:
<p><a href="http://example.com" title="title") [link2](http://example2.com "title2">link</a></p>
Probably just need to tweak the regex.
Resolution
fixed