Bug#692415: [patch] Possible solution

Myhailo Danylenko isbear at ukrpost.net
Tue Nov 6 10:42:19 UTC 2012


Hi!

I've dug this a bit, and by analogue with footnotes, added unsescaping
of special chars to references - and that worked well. The change is
simple and looks logical, but I don't know, if it will break anything.

--- /usr/share/perl5/Text/MultiMarkdown.pm	2011-04-26 12:27:23.000000000 +0300
+++ Text/MultiMarkdown.pm	2012-11-06 12:35:28.000000000 +0200
@@ -1218,6 +1218,7 @@
         $reference =~ s/^[ ]{0,$self->{tab_width}}//gm;
 
         $reference = $self->_RunBlockGamut($reference, {wrap_in_p_tags => 0});
+        $reference = $self->_UnescapeSpecialChars($reference);
 
         $self->{_references}{$id} = $reference;
     }

-- 
Михайло Даниленко
-------------------------------
jabber:	<isbear at unixzone.org.ua>
icq:    590697790
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20121106/5058a2a7/attachment.pgp>


More information about the pkg-perl-maintainers mailing list