aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/lua-filters.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md
index 3ac2a62d2..dadc9a2fc 100644
--- a/doc/lua-filters.md
+++ b/doc/lua-filters.md
@@ -644,6 +644,20 @@ This section describes the types of objects available to Lua
filters. See the [pandoc module](#module-pandoc}) for functions
to create these objects.
+## Shared Properties
+
+### `clone`
+
+`clone ()`
+
+All instances of the types listed here, with the exception of
+read-only objects, can be cloned via the `clone()` method.
+
+Usage:
+
+ local emph = pandoc.Emph {pandoc.Str 'important'}
+ local cloned_emph = emph:clone() -- note the colon
+
## Pandoc {#type-ref-pandoc}
Pandoc document
@@ -1247,6 +1261,7 @@ Object equality is determined via
: delimiter of list numbers; one of `DefaultDelim`, `Period`,
`OneParen`, and `TwoParens` (string)
+
## Hierarchical Element {#type-ref-Element}
Hierarchical elements can be either *Sec* (sections) or *Blk*