From db715dc9d79c49493ddb19f29d98790abb474b49 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Wed, 25 Oct 2017 16:41:03 +0200 Subject: 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. --- data/pandoc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'data') 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"} ) -- cgit v1.2.3