diff options
author | Jonas Smedegaard <dr@jones.dk> | 2014-12-26 07:57:41 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2014-12-26 07:57:41 +0100 |
commit | f37a7025bebbb1c4f39e08b8cec32ce1ba977bf4 (patch) | |
tree | 8e24974beee019edc9798a6f3f2e0dd6e971b6cf /pandoc-iri | |
parent | 6b02100e04d9f7deb422a2f0768f864ad821ecc9 (diff) |
Fix unescape links.
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 { |