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?