summaryrefslogtreecommitdiff
path: root/pandoc-iri
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-12-26 07:57:41 +0100
committerJonas Smedegaard <dr@jones.dk>2014-12-26 07:57:41 +0100
commitf37a7025bebbb1c4f39e08b8cec32ce1ba977bf4 (patch)
tree8e24974beee019edc9798a6f3f2e0dd6e971b6cf /pandoc-iri
parent6b02100e04d9f7deb422a2f0768f864ad821ecc9 (diff)
Fix unescape links.
Diffstat (limited to 'pandoc-iri')
-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 {