07f41a5515
Filtering functions take element components as arguments instead of the whole block elements. This resembles the way elements are handled in custom writers.
11 lines
203 B
Lua
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,
|
|
}
|
|
}
|