mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-27 01:45:56 +00:00
doc/custom-writers.md: fix usage of Template in example
This commit is contained in:
@@ -119,10 +119,7 @@ function Writer (doc, opts)
|
||||
return pandoc.write(doc:walk(filter), 'gfm', opts)
|
||||
end
|
||||
|
||||
function Template ()
|
||||
local template = pandoc.template
|
||||
return template.compile(template.default 'gfm')
|
||||
end
|
||||
Template = pandoc.template.default 'gfm'
|
||||
```
|
||||
|
||||
[Lua filters documentation]: https://pandoc.org/lua-filters.html
|
||||
|
||||
Reference in New Issue
Block a user