* Modify Image in Lua Filter for DOCX -> HTML Conversion
@ 2019-08-09 19:50 Ken Dow
0 siblings, 0 replies; only message in thread
From: Ken Dow @ 2019-08-09 19:50 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 750 bytes --]
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.attributes = {"style", "mu"}
el.classes = {"image"}
return el
end
This sets the `img` class = "image". The commented line causes the `img has
no effect on the `style` attribute. 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/6697b59a-ecf3-4494-b25b-63cec197c347%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 3363 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-08-09 19:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-09 19:50 Modify Image in Lua Filter for DOCX -> HTML Conversion Ken Dow
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).