X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/8c31a01efa05c4fb821e1364b8792b89852619a3..930584cff747d87635da192585030d4fb30a2893:/IkiWiki/Plugin/teximg.pm diff --git a/IkiWiki/Plugin/teximg.pm b/IkiWiki/Plugin/teximg.pm index 1993249eb..fc890666a 100644 --- a/IkiWiki/Plugin/teximg.pm +++ b/IkiWiki/Plugin/teximg.pm @@ -7,7 +7,7 @@ use warnings; use strict; use Digest::MD5 qw(md5_hex); use File::Temp qw(tempdir); -use URI::Escape qw(uri_escape); +use HTML::Entities; use IkiWiki 2.00; sub import { #{{{ @@ -70,7 +70,7 @@ sub create ($$$) { #{{{ my $digest = md5_hex($code, $height); - my $teximgdir = "/teximag"; + my $teximgdir = "/teximg"; my $imglink = "$teximgdir/$digest.png"; my $imglog = "$teximgdir/$digest.log"; will_render($params->{destpage}, $imglink); @@ -90,7 +90,7 @@ sub create ($$$) { #{{{ if (-e "$config{destdir}/$imglink" || gen_image($code, $height, $digest, $teximgdir)) { return qq{}
-			.(exists $params{alt} ? $params{alt} : uri_escape($code))
+			.(exists $params->{alt} ? $params->{alt} : encode_entities($code))
 			.qq{}; } else {