pandoc/test/lua
Albert Krewinkel 56fb854ad8
Text.Pandoc.Lua: respect metatable when getting filters
This change makes it possible to define a catch-all function using lua's
metatable lookup functionality.

    function catch_all(el)
      …
    end

    return {
      setmetatable({}, {__index = function(_) return catch_all end})
    }

A further effect of this change is that the map with filter functions
now only contains functions corresponding to AST element constructors.
2017-08-22 22:56:51 +02:00
..
hello-world-doc.lua data/pandoc.lua: regularize constructors. 2017-06-29 17:08:59 +02:00
implicit-doc-filter.lua data/pandoc.lua: regularize constructors. 2017-06-29 17:08:59 +02:00
markdown-reader.lua Lua module: provide simple read format parser 2017-04-26 23:28:40 +02:00
metatable-catch-all.lua Text.Pandoc.Lua: respect metatable when getting filters 2017-08-22 22:56:51 +02:00
plain-to-para.lua Lua filter: revert to non-destructuring filters 2017-04-15 21:40:48 +02:00
single-to-double-quoted.lua Lua filters: Remove special treatment of Quoted, Math. 2017-06-29 15:47:27 +02:00
smallcaps-title.lua Lua filter: allow filtering of meta data only 2017-04-26 23:28:40 +02:00
strmacro.lua Lua filter: revert to non-destructuring filters 2017-04-15 21:40:48 +02:00