From ba4dfd4f58326bc6a7305b96369bf24c65f487d6 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 1 Nov 2020 10:45:16 -0800 Subject: [PATCH] Fix code example in lua-filters.md. Closes #6795, thanks to Odin Kroeger. --- doc/lua-filters.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"}},