mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-24 01:06:30 +00:00
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.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
return {
|
||||
{
|
||||
RawBlock = function (blk)
|
||||
local format, content = unpack(blk.c)
|
||||
RawBlock = function (format, content)
|
||||
if format == "markdown" then
|
||||
return pandoc.reader.markdown.read_block(content)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user