From 11bb8627677fb8b49af92d7c55aec07c69f95843 Mon Sep 17 00:00:00 2001
From: Albert Krewinkel <albert@zeitkraut.de>
Date: Wed, 12 Jun 2019 18:58:38 +0200
Subject: Lua: add a `clone()` method to all AST elements (#5572)

Closes: #5568
---
 doc/lua-filters.md | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

(limited to 'doc')

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*
-- 
cgit v1.2.3