summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-03-30 11:59:02 +0200
committerJonas Smedegaard <dr@jones.dk>2017-03-30 11:59:02 +0200
commitc65cb773b6025c32a7980aac8da34b48948cf658 (patch)
tree67c6768d69a66f4fcf8feb4074535a393aa7c0bf
parent77afc93b17ebab9161ba2bd1389566492abe185d (diff)
Fix support Pandoc 1.16 document model.
-rwxr-xr-xpandoc-iri3
1 files changed, 2 insertions, 1 deletions
diff --git a/pandoc-iri b/pandoc-iri
index a65cd80..a93c37f 100755
--- a/pandoc-iri
+++ b/pandoc-iri
@@ -7,7 +7,7 @@ use warnings;
use strict;
use Pandoc::Filter 0.05;
-use Pandoc::Elements;
+use Pandoc::Elements 0.16;
use URI;
use URI::Escape;
@@ -23,6 +23,7 @@ pandoc_filter(
sub link_normalize {
my $self = shift;
return [ Link(
+ attributes {},
$self->content,
[ pp_uri($self->target->[0]) => '' ]
)]