Changes
Jump to navigation
Jump to search
add support for horizontal numbered lists
local function getClass(listType, class)
local classes = {}
if listType == 'horizontal' or listType == 'horizontal_numbered' then
table.insert(classes, 'hlist')
elseif listType == 'unbulleted' then
local listTag = 'ul'
local startAttr, typeAttr
if listType == 'numbered' or listType == 'horizontal_numbered' then
listTag = 'ol'
startAttr = args.start
end
local funcNames = {'bulleted', 'unbulleted', 'horizontal', 'numbered', 'horizontal_numbered'}
for _, funcName in ipairs(funcNames) do