diff options
| author | Albert Krewinkel <[email protected]> | 2024-05-24 19:51:12 +0200 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2024-05-24 19:51:46 +0200 |
| commit | f3ed3b36142afe3d005d57481d7b25c6f2db010a (patch) | |
| tree | ea046971c16686bbc3f9a35de77b37f0b89c2e8b /doc | |
| parent | d01f2ac515ae3b744a476100f72050ca5446f328 (diff) | |
doc/custom-writers.md: fix usage of Template in example
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/custom-writers.md | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/doc/custom-writers.md b/doc/custom-writers.md index 55c64eb8a..81493c382 100644 --- a/doc/custom-writers.md +++ b/doc/custom-writers.md @@ -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 |
