@@ -63,6 +63,7 @@ end
64-- @param tag Tag used to identify the constructor
64-- @param tag Tag used to identify the constructor
65-- @param fn Function to be called when constructing a new element
65-- @param fn Function to be called when constructing a new element
66+-- @param accessors names to use as accessors for numerical fields
66-- @return function that constructs a new element
67-- @return function that constructs a new element
67function Element:create_constructor(tag, fn, accessors)
68function Element:create_constructor(tag, fn, accessors)
68 local constr = self:make_subtype({tag = tag, getters = {}, setters = {}})
69 local constr = self:make_subtype({tag = tag, getters = {}, setters = {}})
@@ -134,7 +135,7 @@ end
134-- @section document
135-- @section document
136--- A complete pandoc document
137--- A complete pandoc document
137−-- @function Doc
138+-- @function Panoc
138-- @tparam {Block,...} blocks document content
139-- @tparam {Block,...} blocks document content
139-- @tparam[opt] Meta meta document meta data
140-- @tparam[opt] Meta meta document meta data
140function M.Pandoc(blocks, meta)
141function M.Pandoc(blocks, meta)
@@ -170,7 +171,7 @@ end
171--- Meta map
172--- Meta map
172-- @function MetaMap
173-- @function MetaMap
173−-- @tparam table a string-index map of meta values
174+-- @tparam table key_value_map a string-indexed map of meta values
174M.meta_value_types = {
175M.meta_value_types = {
175 "MetaBlocks",
176 "MetaBlocks",
176 "MetaInlines",
177 "MetaInlines",
@@ -664,7 +665,7 @@ setmetatable(M.Attr, M.Attr)
664-- @tparam[opt] {Inline,...} prefix citation prefix
665-- @tparam[opt] {Inline,...} prefix citation prefix
665-- @tparam[opt] {Inline,...} suffix citation suffix
666-- @tparam[opt] {Inline,...} suffix citation suffix
666-- @tparam[opt] int note_num note number
667-- @tparam[opt] int note_num note number
667−-- @tparam[opt] int note_num hash number
668+-- @tparam[opt] int hash hash number
668M.Citation = function(id, mode, prefix, suffix, note_num, hash)
669M.Citation = function(id, mode, prefix, suffix, note_num, hash)
669 prefix = prefix or {}
670 prefix = prefix or {}
670 suffix = suffix or {}
671 suffix = suffix or {}