mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-24 01:06:30 +00:00
Lua filter: revert to non-destructuring filters
We want to provide an interface familiar to users of other filtering libraries.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
return {
|
||||
{
|
||||
RawBlock = function (format, content)
|
||||
if format == "markdown" then
|
||||
return pandoc.reader.markdown.read_block(content)
|
||||
RawBlock = function (elem)
|
||||
if elem.format == "markdown" then
|
||||
return pandoc.reader.markdown.read_block(elem.text)
|
||||
else
|
||||
return blk
|
||||
return elem
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user