17,230
edits
(fix Gallery ctor's metatable) |
(center gallery captions by default) |
||
Line 29: | Line 29: | ||
function Gallery.new( args ) | function Gallery.new( args ) | ||
args.style = 'text-align:center' -- TODO need to be smarter about this if we want to allow overriding it or adding other styles | |||
return setmetatable( { | return setmetatable( { | ||
args = args, | args = args, |