aboutsummaryrefslogtreecommitdiff
path: root/data/List.lua
AgeCommit message (Collapse)AuthorFilesLines
2017-12-02Lua filters: refactor lua module handlingAlbert Krewinkel1-120/+0
The integration with Lua's package/module system is improved: A pandoc-specific package searcher is prepended to the searchers in `package.searchers`. The modules `pandoc` and `pandoc.mediabag` can now be loaded via `require`.
2017-12-01List.lua: add missing fixes as discussed in #4099Albert Krewinkel1-22/+33
The changes were missing due to an error while using git.
2017-11-29List.lua: add _VERSION to module, drop unused varAlbert Krewinkel1-4/+3
2017-11-28Add basic lua List module (#4099)Albert Krewinkel1-0/+110
The List module is automatically loaded, but not assigned to a global variable. It can be included in filters by calling `List = require 'List'`. Lists of blocks, lists of inlines, and lists of classes are now given `List` as a metatable, making working with them more convenient. E.g., it is now possible to concatenate lists of inlines using Lua's concatenation operator `..` (requires at least one of the operants to have `List` as a metatable): function Emph (emph) local s = {pandoc.Space(), pandoc.Str 'emphasized'} return pandoc.Span(emph.content .. s) end Closes: #4081