diff options
| author | Albert Krewinkel <[email protected]> | 2017-04-15 21:40:48 +0200 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2017-04-15 21:40:48 +0200 |
| commit | e6a536befcfd433aba66a3085e62792383867695 (patch) | |
| tree | fa72e18815578651383fc79cffcce6edd76b324d /test/lua/markdown-reader.lua | |
| parent | 291e4f39e8a118a723f2981f1eb731a061b0f6c0 (diff) | |
Lua filter: revert to non-destructuring filters
We want to provide an interface familiar to users of other filtering
libraries.
Diffstat (limited to 'test/lua/markdown-reader.lua')
| -rw-r--r-- | test/lua/markdown-reader.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lua/markdown-reader.lua b/test/lua/markdown-reader.lua index a72af5546..aefba4bdf 100644 --- a/test/lua/markdown-reader.lua +++ b/test/lua/markdown-reader.lua @@ -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, } |
