From f3ed3b36142afe3d005d57481d7b25c6f2db010a Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 24 May 2024 19:51:12 +0200 Subject: [PATCH] doc/custom-writers.md: fix usage of Template in example --- doc/custom-writers.md | 5 +---- 1 file changed, 1 insertion(+), 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