Skip Menu |

This queue is for tickets about the Text-WikiCreole CPAN distribution.

Report information
The Basics
Id: 34416
Status: resolved
Priority: 0/
Queue: Text-WikiCreole

People
Owner: Nobody in particular
Requestors: raven [...] phoenyx.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.05
Fixed in: (no value)



Subject: Links wrapped with italics do not render properly
This is perl, v5.8.8, Text::WikiCreole v0.05 //[[http://my.book.com/|My Book Title]]// is rendered as <em>[[http:</em>my.book.com/|My Book Title]]<em></em> While the WikiCreole example shows that proper rendering of markup _inside_ the link is required, but doesn't show that a link embedded in markup as an example, it should still be handled gracefully. (It also creates inconsistent behavior, as using ** or other markup around the link works fine.) I worked around this temporarily with this modification to the 'em' "chunk"... stops => '\/\/.*?(?<!http:)\/\/', But that's not a good universal fix, as it only addresses the one protocol, as the negative look-behind is fixed-width. The negative look-ahead didn't work here, thought it might with some finagling. Thanks. (I'd give it further thought, but I don't have a lot of time to figure out exactly how your module works.)
Resolved in 0.07 (just uploaded). I went with your fix, but just had it look behind to the colon, which should work for any protocol.