From c79257bc4f138d740b71a533b9217d67cf9180c2 Mon Sep 17 00:00:00 2001 From: Michael Letterle Date: Sat, 2 Feb 2019 12:54:04 -0500 Subject: [PATCH] Correct capitalization of meta This is needed at least for Pandoc 2.5 --- pandoc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandoc.pm b/pandoc.pm index 789e388..2416192 100755 --- a/pandoc.pm +++ b/pandoc.pm @@ -435,7 +435,7 @@ sub htmlize ($@) { my $meta = undef; my $decoded_json = decode_json($json_content); # The representation of the meta block changed in pandoc version 1.18 - if (ref $decoded_json eq 'HASH' && $decoded_json->{'Meta'}) { + if (ref $decoded_json eq 'HASH' && $decoded_json->{'meta'}) { $meta = $decoded_json->{'meta'} || {}; # post-1.18 version } elsif (ref $decoded_json eq 'ARRAY') { $meta = $decoded_json->[0]->{'unMeta'} || {}; # pre-1.18 version -- 2.39.2