From bb412768d823463855fb2a9d5f2d6d4a18d23da1 Mon Sep 17 00:00:00 2001 From: Matt Dodson <47385188+MattDodsonEnglish@users.noreply.github.com> Date: Wed, 17 May 2023 18:09:23 -0300 Subject: doc/lua-filters: use full field name in example (#8857) Remove old `.c` alias that mimics the JSON representation: - Since 2.15ish, the lua structure no longer closely resembles that JSON representation - even if it did, introductory examples should be explicit. Using an undocumented alias creates ambiguity. --- doc/lua-filters.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/lua-filters.md b/doc/lua-filters.md index fff67fcd8..8f131c2a0 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -42,7 +42,7 @@ to small caps: return { { Strong = function (elem) - return pandoc.SmallCaps(elem.c) + return pandoc.SmallCaps(elem.content) end, } } @@ -52,7 +52,7 @@ or equivalently, ``` lua function Strong(elem) - return pandoc.SmallCaps(elem.c) + return pandoc.SmallCaps(elem.content) end ``` -- cgit v1.2.3