public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Grabbing into base64 generation for HTML with inner HTML
@ 2021-09-13 18:02 ch_...-S0/GAf8tV78@public.gmane.org
  0 siblings, 0 replies; only message in thread
From: ch_...-S0/GAf8tV78@public.gmane.org @ 2021-09-13 18:02 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1046 bytes --]

Hi there,

MWE:

# a

<picture>
    <source srcset="dark.png" media="(prefers-color-scheme: dark)" />
    <img src="light.png" alt="" />
</picture>

Compile with pandoc test.md -o test.html --standalone --self-contained

I generate picture tags using a lua filter and I want to use 
--self-contained. The actual image is base64 encoded automatically then but 
the source element is not. Is there a way to use the pandoc API so that 
this is done automatically, maybe using the mediabag module? At the moment 
I do the encoding in Lua but I have memory problems, probably due to the 
result being returned and marshalled back to pandoc

-- 
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/2e7b1df2-ce93-4d9b-938b-bcb0023e61abn%40googlegroups.com.

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-13 18:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-13 18:02 Grabbing into base64 generation for HTML with inner HTML ch_...-S0/GAf8tV78@public.gmane.org

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