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 committed 2017-04-15 21:40:48 +02:00
1 parent 291e4f39e8
commit e6a536befc
5 files changed
+58 -77

No files matched your search

+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,
}