The following removes the `style="width100;height:100"` altogether, which is what I wanted:

function Image(el)
  el
.attributes = {}
 
return el
end


But this doesn't set anything - it also completely removes the style attribute. So I still don't understand see how `el.attributes` is supposed to work for images:

function Image(el)
  el
.attributes = {["width"] = 101, ["height"] = 102}
 
return el
end


On Friday, 9 August 2019 15:53:07 UTC-4, Ken Dow wrote:
I'd like to modify the attributes of all images from a DOCX conversion to HTML in a Lua filter. So far:

function Image(el)
   el
.classes = {"image"}
--   el.attributes = {"style", "mu"}
  
return el
end


This el.classes line sets  the `img` class = "image". The el.attributes line removes the `img` tag from the output. What am I missing?

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/9c5993b8-c9ec-4b14-9702-f0279ace3e6f%40googlegroups.com.