From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29233 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "ch_...-S0/GAf8tV78@public.gmane.org" Newsgroups: gmane.text.pandoc Subject: Grabbing into base64 generation for HTML with inner HTML Date: Mon, 13 Sep 2021 11:02:01 -0700 (PDT) Message-ID: <2e7b1df2-ce93-4d9b-938b-bcb0023e61abn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3443_785795727.1631556121783" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35338"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD65VBUXVUPBBGVE72EQMGQEAKLEJZQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Sep 13 20:02:07 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f59.google.com ([209.85.161.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mPqHO-0008yE-Dj for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 13 Sep 2021 20:02:06 +0200 Original-Received: by mail-oo1-f59.google.com with SMTP id q11-20020a4aa88b000000b0028e498bb328sf8083826oom.3 for ; Mon, 13 Sep 2021 11:02:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=kkv7iGQsdW7uhy3AbnG660MMXuCDXLcIlP3QM6NYfUo=; b=XP9Nixwr7bNaehhm9f1V1HKalO29X6kPTOd8Hs/tpfZiycooM+tBCHv+BLkucFaNBY TPTKhfcFpATJvs0H+V3wCGfh9DyGsl3Z9QwsBik5bhG5TTjzop0l471Ue5grETAEYVpi NX09gn7eJ+CsHCxgepCQsIx17dR6dOPYkwVS5kMi9nNKoJliV6IqG5+KCY8GW46+zA3k OkIm1xvZaiVSHcPnTxi6VPFqs2riG430JMPbv1S62P+i0WputnvWIku9z/HU6d3RRKen aWHAO8714gXUVCh6pKPPBWtMHrwHPL+QC3SjzH//LMwdaOQFGb8pjl4ZKAt/ziw20GAA 8lnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=kkv7iGQsdW7uhy3AbnG660MMXuCDXLcIlP3QM6NYfUo=; b=cuV2bg8K/VvQJ8PAkyU+vBH/Iks6D+i7x7BXC+A5lH5iS1TyqrOZS2nQQbomXLEUKX Q5ApwLUQ6ViMDYppVn3gheCJovNA8FkPessK+bBs+Py4dHyMsniCmstOLFKq3XN20dUs Q7rRlqvgw5mLxDFSMi+hghkzCTNJrEfqOvigp8otOhH6V5fyAnW1RTxf5SORMxNX8Hiq LNVuD6UlbbeqRohULWWzQqda6DDPWdoYsQzhugOPxGVeMc2wO1Yg/6tvhlt06TDcV5Nj d73TvHbbdRtTiGsJdulJdO/KI2NXgTPvnbYOH4eWNrSbxLGGoefeyVO4scx7/ZXJOoqv KTnQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532+e1JXVw8j7ZPCFyskdMvnR2Dd3h/20af7jHAcRpxuDJx7HOl0 gGYTEZOcofxpLqgmD9GEaZY= X-Google-Smtp-Source: ABdhPJz5wo7L0qVk2zNOd/pst4w+cQzom8kf/tA9s3uWHX88y33BGpUjVXGFntuMMQChxL4efDd6rA== X-Received: by 2002:aca:d68c:: with SMTP id n134mr8407916oig.34.1631556123913; Mon, 13 Sep 2021 11:02:03 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:66c4:: with SMTP id t4ls2133171otm.5.gmail; Mon, 13 Sep 2021 11:02:02 -0700 (PDT) X-Received: by 2002:a05:6830:4c1:: with SMTP id s1mr10356262otd.221.1631556122334; Mon, 13 Sep 2021 11:02:02 -0700 (PDT) X-Original-Sender: ch_819-S0/GAf8tV78@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:29233 Archived-At: ------=_Part_3443_785795727.1631556121783 Content-Type: multipart/alternative; boundary="----=_Part_3444_2025409358.1631556121783" ------=_Part_3444_2025409358.1631556121783 Content-Type: text/plain; charset="UTF-8" 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. ------=_Part_3444_2025409358.1631556121783 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi there,

MWE:

# a

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

Compile with pandoc test.md -o test.html --st= andalone --self-contained

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 th= e 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 &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@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.
------=_Part_3444_2025409358.1631556121783-- ------=_Part_3443_785795727.1631556121783--