diff options
Diffstat (limited to 'test/lua/markdown-reader.lua')
-rw-r--r-- | test/lua/markdown-reader.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/lua/markdown-reader.lua b/test/lua/markdown-reader.lua new file mode 100644 index 000000000..6356113ec --- /dev/null +++ b/test/lua/markdown-reader.lua @@ -0,0 +1,12 @@ +return { + { + RawBlock = function (blk) + local format, content = unpack(blk.c) + if format == "markdown" then + return pandoc.reader.markdown.read_block(content) + else + return blk + end + end, + } +} |