public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Manipulate Image in DOCX -> HTML using Lua Filter
@ 2019-08-09 19:53 Ken Dow
       [not found] ` <2ad2cd23-4cc0-4e2a-bf07-bd2f09e2ae03-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Ken Dow @ 2019-08-09 19:53 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 754 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.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/2ad2cd23-4cc0-4e2a-bf07-bd2f09e2ae03%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 2421 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-10 17:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-09 19:53 Manipulate Image in DOCX -> HTML using Lua Filter Ken Dow
     [not found] ` <2ad2cd23-4cc0-4e2a-bf07-bd2f09e2ae03-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-08-10 12:41   ` Ken Dow
     [not found]     ` <9c5993b8-c9ec-4b14-9702-f0279ace3e6f-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-08-10 17:07       ` Albert Krewinkel

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).