aboutsummaryrefslogtreecommitdiff
path: root/doc/lua-filters.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-11-01 10:45:16 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-11-01 10:48:47 -0800
commitba4dfd4f58326bc6a7305b96369bf24c65f487d6 (patch)
treea9eae16bee6f9876d743b610d52380bef2cb140c /doc/lua-filters.md
parent992657efaa233c8ebcc2e5b87cc328fe419afca0 (diff)
downloadpandoc-ba4dfd4f58326bc6a7305b96369bf24c65f487d6.tar.gz
Fix code example in lua-filters.md.
Closes #6795, thanks to Odin Kroeger.
Diffstat (limited to 'doc/lua-filters.md')
-rw-r--r--doc/lua-filters.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md
index a9a02e745..b715b8218 100644
--- a/doc/lua-filters.md
+++ b/doc/lua-filters.md
@@ -2605,7 +2605,8 @@ format, and functions to filter and modify a subtree.
local caption = "Overview"
local aligns = {pandoc.AlignDefault, pandoc.AlignDefault}
local widths = {0, 0} -- let pandoc determine col widths
- local headers = {"Language", "Typing"}
+ local headers = {{pandoc.Plain({pandoc.Str "Language"})},
+ {pandoc.Plain({pandoc.Str "Typing"})}}
local rows = {
{{pandoc.Plain "Haskell"}, {pandoc.Plain "static"}},
{{pandoc.Plain "Lua"}, {pandoc.Plain "Dynamic"}},