diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2021-10-24 22:49:34 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2021-10-25 09:08:58 +0200 |
commit | 230b133db53e8ef2677fe13304e1e03276ca6448 (patch) | |
tree | bada7875937f7d4f7d2c98d6ea4c0d169dc37dcd /data | |
parent | 113a66bd08fa4921157d95873c18c46431e565f9 (diff) | |
download | pandoc-230b133db53e8ef2677fe13304e1e03276ca6448.tar.gz |
Lua: marshal Citation values as userdata objects
Diffstat (limited to 'data')
-rw-r--r-- | data/pandoc.lua | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/data/pandoc.lua b/data/pandoc.lua index 8fbd2259b..47343b28c 100644 --- a/data/pandoc.lua +++ b/data/pandoc.lua @@ -557,29 +557,6 @@ for _, blk in pairs(M.Block.constructor) do augment_attr_setter(blk.behavior.setters) end --- Citation -M.Citation = AstElement:make_subtype'Citation' -M.Citation.behavior.clone = M.types.clone.Citation - ---- Creates a single citation. --- @function Citation --- @tparam string id citation identifier (like a bibtex key) --- @tparam AuthorInText|SuppressAuthor|NormalCitation mode citation mode --- @tparam[opt] {Inline,...} prefix citation prefix --- @tparam[opt] {Inline,...} suffix citation suffix --- @tparam[opt] int note_num note number --- @tparam[opt] int hash hash number -function M.Citation:new (id, mode, prefix, suffix, note_num, hash) - return { - id = id, - mode = mode, - prefix = ensureList(prefix or {}), - suffix = ensureList(suffix or {}), - note_num = note_num or 0, - hash = hash or 0, - } -end - -- ListAttributes M.ListAttributes = AstElement:make_subtype 'ListAttributes' M.ListAttributes.behavior.clone = M.types.clone.ListAttributes |