summaryrefslogtreecommitdiff
path: root/data/List.lua
Commit message (Collapse)AuthorAge
* List.lua: add missing fixes as discussed in #4099Albert Krewinkel2017-12-01
| | | | The changes were missing due to an error while using git.
* List.lua: add _VERSION to module, drop unused varAlbert Krewinkel2017-11-29
|
* Add basic lua List module (#4099)Albert Krewinkel2017-11-28
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