aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Dodson <[email protected]>2023-05-17 18:09:23 -0300
committerGitHub <[email protected]>2023-05-17 23:09:23 +0200
commitbb412768d823463855fb2a9d5f2d6d4a18d23da1 (patch)
tree653523d3ed3f1cf6495ae37b37956279471d2f37
parent5745ac8849c282619bb413d141179b57de86de8c (diff)
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.
-rw-r--r--doc/lua-filters.md4
1 files 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
```