Skip to content

Commit

Permalink
use pandoc.utils.type to test for meta type (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlday committed Mar 12, 2022
1 parent de287cf commit e28b04f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filters/meta.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

function Meta(meta)
for k, v in pairs(meta) do
if v.t == "MetaInlines" then
if pandoc.utils.type(v) == "Inlines" then
vars["#" .. k .. "#"] = pandoc.utils.stringify(v)
end
end
Expand Down

0 comments on commit e28b04f

Please sign in to comment.