aboutsummaryrefslogtreecommitdiff
path: root/test/lua/module/pandoc-list.lua
AgeCommit message (Collapse)AuthorFilesLines
2020-01-11Lua: add methods `insert`, `remove`, and `sort` to pandoc.ListAlbert Krewinkel1-40/+80
The functions `table.insert`, `table.remove`, and `table.sort` are added to pandoc.List elements. They can be used as methods, e.g. local numbers = pandoc.List {2, 3, 1} numbers:sort() -- numbers is now {1, 2, 3}
2020-01-11pandoc.List.lua: make `pandoc.List` a callable constructorAlbert Krewinkel1-0/+9
It is now possible to construct a new List via `pandoc.List()` instead of `pandoc.List:new()`.
2020-01-11Add tests for pandoc.List moduleAlbert Krewinkel1-0/+111