mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
It is now possible to return a single filter from a filter file, e.g.
``` lua
-- Switch single- and double quotes
return {
Quoted = function (q)
elem.quotetype = elem.quotetype == 'SingleQuote'
and 'DoubleQuote' or 'SingleQuote'
return elem
end
}
The filter must not contain numerical indexes, or it might be treated as
a list of filters.
pandoc-lua-engine
This package provides a Lua pandoc scripting engine based. It allows to write filters, custom readers, and custom writers in Lua.