/
githubmirror
/
pandoc
Обзор
Документация
Войти
/
githubmirror
/
pandoc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
pandoc-lua-engine/test/lua/smart-constructors.lua
10 строк
366 B
Albert Krewinkel
[API Change] Extract Lua code into new package pandoc-lua-engine
30 сен 2022, 18:33
30 сен 2022, 18:33
5be9052
Код
Авторство
О чём код?
-- 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