pandoc/test/lua/markdown-reader.lua
Albert Krewinkel e6a536befc
Lua filter: revert to non-destructuring filters
We want to provide an interface familiar to users of other filtering
libraries.
2017-04-15 21:40:48 +02:00

11 lines
200 B
Lua

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