aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Info/9/3/Planet/pandoc/center-img.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/Info/9/3/Planet/pandoc/center-img.lua b/Info/9/3/Planet/pandoc/center-img.lua
index a6a5e1fb..86fa2888 100644
--- a/Info/9/3/Planet/pandoc/center-img.lua
+++ b/Info/9/3/Planet/pandoc/center-img.lua
@@ -7,7 +7,7 @@ if FORMAT:match 'html' then
function Image (elem)
if elem.classes[1] == 'center' then
-- Use CSS style to center image
- elem.attributes.style = 'margin:auto; display: block;'
+ elem.attributes.style = (elem.attributes.style or '') .. ';margin:auto; display: block;'
end
return elem
end