summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/pandoc.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/data/pandoc.lua b/data/pandoc.lua
index 74263b1fd..d8f7adb97 100644
--- a/data/pandoc.lua
+++ b/data/pandoc.lua
@@ -153,6 +153,21 @@ end
M.Doc = M.Pandoc
------------------------------------------------------------------------
+-- Meta
+-- @section Meta
+
+--- Create a new Meta object. It sets the metatable of the given table to
+--- `Meta`.
+-- @function Meta
+-- @tparam meta table table containing document meta information
+M.Meta = {}
+M.Meta.__call = function(t, meta)
+ return setmetatable(meta, self)
+end
+setmetatable(M.Meta, M.Meta)
+
+
+------------------------------------------------------------------------
-- MetaValue
-- @section MetaValue
M.MetaValue = Element:make_subtype{}