tag 459885 patch thanks * Adeodato Simó [Wed, 09 Jan 2008 13:59:25 +0100]:
> But this does not work in either: > -8<- > [my > university][] > ->8- > In 1.0.1 it doesn't work at all, and in 1.0.2 it gets interpreted as one > of the new [without second pair of brackets] style links, and the second > pair gets printed verbatim in the output. > I may poke at the code later. Okay, simple enough. It seems to me that the same substitution of \n into spaces that is performed for the [link without second pair of brackets] case should be made for the [other type][] of link. I attach a patch. Note that the line that I add is copied verbatim from some lines below in the code. It would be very nice to have this applied to the package, even if forwarding upstream yields no answer. Thanks! -- Adeodato Simó dato at net.com.org.es Debian Developer adeodato at debian.org As scarce as truth is, the supply has always been in excess of the demand. -- Josh Billings
--- markdown~ 2008-01-09 17:14:48.000000000 +0100 +++ markdown 2008-01-09 17:13:07.000000000 +0100 @@ -579,7 +579,7 @@ my $result; my $whole_match = $1; my $link_text = $2; - my $link_id = lc $3; + (my $link_id = lc $3) =~ s{[ ]?\n}{ }g; # lower-case and turn embedded newlines into spaces if ($link_id eq "") { $link_id = lc $link_text; # for shortcut links like [this][].