Files
pandoc/pandoc-lua-engine/test/writer-template.lua
Albert Krewinkel a03b77fbd3 Lua: support -D CLI option for custom writers [API change]
A new error `PandocNoTemplateError` (code 87) is thrown if a template is
required but cannot be found.
2022-12-05 08:52:37 -08:00

8 lines
149 B
Lua

function Writer (doc, opts)
return pandoc.write(doc, 'gfm', opts)
end
function Template ()
return '<!-- start -->\n$body$\n<!-- stop -->\n'
end