pandoc/test/lua/markdown-reader.lua
Albert Krewinkel 07f41a5515
Lua filter: use destructured functions for block filters
Filtering functions take element components as arguments instead of the
whole block elements. This resembles the way elements are handled in
custom writers.
2017-04-14 11:34:44 +02:00

11 lines
203 B
Lua

return {
{
RawBlock = function (format, content)
if format == "markdown" then
return pandoc.reader.markdown.read_block(content)
else
return blk
end
end,
}
}