summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2017-10-25 16:41:03 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2017-10-25 16:41:03 +0200
commitdb715dc9d79c49493ddb19f29d98790abb474b49 (patch)
tree8e715b4432c564375e883ce212acd26da9612db2 /data
parent50275957ffb254e74ff46e07a104949973c07e0e (diff)
pandoc.lua: define default list attributes
The second argument of the OrderedList constructor, which should define the list's attributes, is made optional. Default attributes are used if the parameter is omitted.
Diffstat (limited to 'data')
-rw-r--r--data/pandoc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/pandoc.lua b/data/pandoc.lua
index b2e8f9edb..c5e20045c 100644
--- a/data/pandoc.lua
+++ b/data/pandoc.lua
@@ -315,7 +315,8 @@ M.Null = M.Block:create_constructor(
M.OrderedList = M.Block:create_constructor(
"OrderedList",
function(items, listAttributes)
- return {c = {listAttributes,items}}
+ listAttributes = listAttributes or {1, M.DefaultStyle, M.DefaultDelim}
+ return {c = {listAttributes, items}}
end,
{{"start", "style", "delimiter"}, "content"}
)