diff options
Diffstat (limited to 'pandoc-iri')
-rwxr-xr-x | pandoc-iri | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -7,6 +7,7 @@ use Pandoc::Filter; use Pandoc::Elements; use URI; +use URI::Escape; use URI::Find; pandoc_filter( @@ -26,11 +27,11 @@ sub link_normalize { } sub pp_uri { - return URI->new(shift)->canonical->as_string; + return URI->new(uri_unescape(shift))->canonical->as_string; } sub pp_iri { - return URI->new(shift)->canonical->as_iri; + return URI->new(uri_unescape(shift))->canonical->as_iri; } sub pp_string { |