Lua filter: revert to non-destructuring filters

We want to provide an interface familiar to users of other filtering
libraries.
This commit is contained in:
Albert Krewinkel
2017-04-15 21:40:48 +02:00
parent 291e4f39e8
commit e6a536befc
5 changed files with 58 additions and 77 deletions
+4 -4
View File
@@ -1,10 +1,10 @@
return {
{
RawBlock = function (format, content)
if format == "markdown" then
return pandoc.reader.markdown.read_block(content)
RawBlock = function (elem)
if elem.format == "markdown" then
return pandoc.reader.markdown.read_block(elem.text)
else
return blk
return elem
end
end,
}