mirror of
https://github.com/jgm/pandoc.git
synced 2026-10-03 04:37:45 +00:00
Custom writers can define a default template via a global `Template` function; the data directory is no longer searched for a default template. Writer authors can restore the old lookup behavior with ``` lua Template = function () local template return template.compile(template.default(PANDOC_SCRIPT_FILE)) end ```
8 lines
173 B
Lua
8 lines
173 B
Lua
function Writer (doc, opts)
|
|
return pandoc.write(doc, 'gfm', opts)
|
|
end
|
|
|
|
function Template ()
|
|
return pandoc.template.compile '<!-- start -->\n$body$\n<!-- stop -->\n'
|
|
end
|