summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpandoc-iri5
1 files changed, 3 insertions, 2 deletions
diff --git a/pandoc-iri b/pandoc-iri
index 94be2e4..0f3fb0c 100755
--- a/pandoc-iri
+++ b/pandoc-iri
@@ -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 {