pandoc/test/lua/smart-constructors.lua

11 lines
366 B
Lua
Raw Normal View History

-- 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