aboutsummaryrefslogtreecommitdiff
path: root/test/lua/smart-constructors.lua
blob: 6e579a12f2129e6ea296e53c835d1ad452abbf4d (plain)
1
2
3
4
5
6
7
8
9
10
-- 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