git.iko.soy/typeable/pandoc
on fa6ffca help sign in
typeable/pandoc/test/lua/smart-constructors.lua
10 lines 366 B history raw
1-- Test that constructors are "smart" in that they autoconvert
2-- types where sensible.
3function Para (_)
4 return {
5 pandoc.BulletList{pandoc.Para "Hello", pandoc.Para "World"},
6 pandoc.DefinitionList{{"foo", pandoc.Para "placeholder"}},
7 pandoc.LineBlock{"Moin", "Welt"},
8 pandoc.OrderedList{pandoc.Plain{pandoc.Str "one"}, pandoc.Plain "two"}
9 }
10end