Hi there, MWE: # a 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.