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:
5 files changed
+58
-77
No files matched your search
@@ -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