Skip to content

Commit

Permalink
revert internal inlinesToString and stringToInlines
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Jul 14, 2023
1 parent 58d06fd commit 25b868d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/resources/filters/common/pandoc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,15 @@ function combineFilters(filters)
end

function inlinesToString(inlines)
local pt = pandoc.utils.type(inlines)
if pt ~= "Inlines" then
fail("inlinesToString: expected Inlines, got " .. pt)
return ""
end
return pandoc.utils.stringify(pandoc.Span(inlines))
end

-- lua string to pandoc inlines
function stringToInlines(str)
if str then
return pandoc.Inlines({pandoc.Str(str)})
return pandoc.List({pandoc.Str(str)})
else
return pandoc.Inlines({})
return pandoc.List({})
end
end

Expand Down

0 comments on commit 25b868d

Please sign in to comment.