mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-31 04:35:44 +00:00
Filtering functions take element components as arguments instead of the whole block elements. This resembles the way elements are handled in custom writers.
12 lines
203 B
Lua
12 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,
|
|
}
|
|
}
|