Files
pandoc/pandoc-lua-engine/test/lua/smart-constructors.lua
Albert Krewinkel 5be9052f5f [API Change] Extract Lua code into new package pandoc-lua-engine
The flag 'lua53` must now be used with that package if pandoc is to be
compiled against Lua 5.3.
2022-09-30 08:33:40 -07:00

11 lines
366 B
Lua

-- Test that constructors are "smart" in that they autoconvert
-- types where sensible.
function Para (_)
return {
pandoc.BulletList{pandoc.Para "Hello", pandoc.Para "World"},
pandoc.DefinitionList{{"foo", pandoc.Para "placeholder"}},
pandoc.LineBlock{"Moin", "Welt"},
pandoc.OrderedList{pandoc.Plain{pandoc.Str "one"}, pandoc.Plain "two"}
}
end