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.
This commit is contained in:
parent
50275957ff
commit
db715dc9d7
1 changed files with 2 additions and 1 deletions
|
@ -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"}
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue