Skip to content

Commit

Permalink
improve handling of table
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonstyle committed Sep 15, 2023
1 parent 4101ed0 commit 3aab9b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/resources/pandoc/datadir/_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,11 @@ local function as_inlines(v)
end

if type(v) == "table" then
return pandoc.utils.blocks_to_inlines(v)
local result = pandoc.Inlines({})
for i, v in ipairs(v) do
tappend(result, as_inlines(v))
end
return result
end

-- luacov: disable
Expand Down

0 comments on commit 3aab9b2

Please sign in to comment.