From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29314 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: revealjs background and self contained not working anymore Date: Tue, 28 Sep 2021 09:04:06 -0700 Message-ID: References: <80a3d759-3f29-44d8-9a43-5890dcf9b70en@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27440"; mail-complaints-to="usenet@ciao.gmane.io" To: christophe dervieux , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBBA72ZSFAMGQEWFTR27A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 28 18:04:24 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 1mVFah-0006yk-7i for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 28 Sep 2021 18:04:23 +0200 Original-Received: by mail-oo1-f59.google.com with SMTP id z23-20020a4ad597000000b0029174f63d3esf24669072oos.18 for ; Tue, 28 Sep 2021 09:04:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1632845062; cv=pass; d=google.com; s=arc-20160816; b=zuhzFgnOcQY28smbuIfLNkVF/v/hnl1MFtR6sj3B6qwoAwIgSDR0IkvZlFAd5peXoL yrv3Ue5QDbKVXKJEmUT/0Mp5Rs26IaZWvdf+oQjp36WYlimEOUrM+j56bvepS6GqgPYt k8yVgnxusBDJFP8Frs/gDENnE6PMT0w83nW5huRXj80fLe2r5BE5RHhsAvY9xZg/t9AN 3gKqLLSB9TWgcnbUdYTeLH1mFQn116Uy9uFQ8x00zokah66CrWtRFiciCNzmeodYQcjN 0MYq3S/68C8RNtpES4nLbOA7T0hZS7qWq1qKB1A7YkEiZC+7KCpAFGiWtKla/tXikmuR 8cnw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-transfer-encoding :mime-version:message-id:date:references:in-reply-to:subject:to:from :sender:dkim-signature; bh=tAxoSxM7ik9hanl6eben7aC+tnfxdxJ9F28BB1x1xKQ=; b=Xq5J4yFzEPmp6PgV7xrf1t7CFJnk0dF+ZCxOS/CG5knaQ5qtnwwgM7damNYf215MCb DbVRhpPCNxzeUrbUd/TUrTHyHgAt71WV/wnVVY2wFN1SA+imdOt8NNq1TKFOEqrpNGWE vNHDHMsQOzYIojFyNRf07AmS02+IR51434FL6h3r3Auu1yJz2i+ThjsSMDo9ceOAl+gf 1HsbCQMaNz9DIepAbrdMoU0wKcuMaLf/qPRQeJryRm9b+jMlXAHZtoPuH6iT6pzCFFZ/ KeEMFd4ExxP0aT8cii1OksCrBY1/UJyprPu0mpaenMdDn+fTuFm9kAla/3/CfxWCWBSu nZDA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=qnktNb7q; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42f as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=tAxoSxM7ik9hanl6eben7aC+tnfxdxJ9F28BB1x1xKQ=; b=aOwgEo3Wg4Qy6+Kc9Kz0zDVKOMK4zzgdUkX98qm/12n1TXE9LP0awsFwu2sYUKXRns lRPPN61IKTnksjUNEWvrTC/LfZl2EuPt+heZrxz8U3PKsvyZVed1boXjyjKVRsFhekUw ClMxyGosrvwbgyoOqiVWyLoDpB7+Drqw91VM52hNt68K+i3ELQGXMqqJKwClAPYffUAb 6G0wmoXl3elC0G210qTpFSdbr5G9zD6UNKemtES1dzeVCTZytr09oMH3j+reUlgbwPzM uc/NeGttryZ66zqk0sjw6I0fm6hirhUlBgrkGvcJWULF7gpzDXPwfAOpZEfdEQkUlXjC oSxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=tAxoSxM7ik9hanl6eben7aC+tnfxdxJ9F28BB1x1xKQ=; b=YdR2vL6xd1Xn81Lcys+0yrHNpwCa5qOruv5NOMaIuXmoUOyyCiE1kgXH4b4Y9r60R9 kD4/8Iu0hnbE2ABNdos84WVD60KsAwLmUXIB09sqYdtUf22w32dPV5NKu8iFBOkejvEQ N6s14rPOy7WN/ssP03Y6R6ZWKjMztyJ3QH4tW/lZtYoOm/3HAYZEzoAynrah4BZnGghD /G8NDyP4npUiZHAhl/qvNpLLYWBm9GmNrbFSiorrFdgBrejTrHa0ll3yxV1juNLX79a/ lVS+oK6HbvEoKS+cFzcMEqAYO58oiff2r6yPENaMqylYC8vLZql4s+wy6IaZxzdeWFIf Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5312HJL8YpH2f55Vojt8ua2jeFsKQ7ejZ5qBHmqj+i/CPmXj8dtF SITOJdEmqwxlXTqm7OUa+lw= X-Google-Smtp-Source: ABdhPJy4tOusk3TQ34fh17midMrg37xBc+mmhwAB5vAtjRutkjKpli++dsv1XrCt983++z7QS5azHw== X-Received: by 2002:a05:6830:1304:: with SMTP id p4mr3264862otq.213.1632845062190; Tue, 28 Sep 2021 09:04:22 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:547:: with SMTP id l7ls2748729otb.4.gmail; Tue, 28 Sep 2021 09:04:19 -0700 (PDT) X-Received: by 2002:a9d:5d15:: with SMTP id b21mr5821765oti.356.1632845059076; Tue, 28 Sep 2021 09:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632845059; cv=none; d=google.com; s=arc-20160816; b=X5087zW9ivWkrtBJd6ymraUuu+4x/CRvQEuK/CL91aBzJ3GfAa63OV/i6ghckbxNTC PgLD620PHT6OCdWsyabR8FgtgOIeCTNp1w6mbYwADrIuTOfJI9RaAyc7Kp1GYT10TqxY T+p0LQx+1vh+y3BH8RxpfAVJi27VDRMTfiJS5+9n4bAb6mt/Q9qAQYNsFXg0SY0WO+zy 2HBKhoSHTl4/zusupHNTGbKqILFx7ja6M2jzvJQXEX87kkzFD2O2qVlSUJobrvAT2FQJ bUy/bMNMvSx5j/4L0JxyQVVmUHgvyqbyuvNd/+P9/TbUZP2oq49iVMRu6ipg+YZguR3x t02g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:dkim-signature; bh=/QKzJFqCQwFZ0YHgOxNo5sVtWZ71LuaZaibHliTe6KA=; b=cmXayXHaUpOr0yFEEMVyW1qPGgerRnF675KezX9UcaIbKOHiUcdtUiccwb+nkpvGUt PqG5PfKTXKDEg8FcSWLkJwM01gfREgWHGJZC4YTzV3mknvjESxFyB5lj/ZKyU7J6wmBd zNLd0XLglEDQOsx0Iwi/Q8/dZamZtc/L0U1RoWh0noy1k1f/B5BUYaKtg2I5nBoVf6Lf yaR/YQOa0tPPiXf2eJ2Q9TbA/mnYFxSqxyUR3Ve6KVIO6tCigXpY7jqOUooseoiNKRIA JnBkjGO1BQgpYAhRkcnJwmNx3spIAU3xROw/JJdSizTb+Lk2rFrp9QsaJoowT69H7vY3 rXTQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=qnktNb7q; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42f as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com. [2607:f8b0:4864:20::42f]) by gmr-mx.google.com with ESMTPS id v12si1872942otq.4.2021.09.28.09.04.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Sep 2021 09:04:19 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42f as permitted sender) client-ip=2607:f8b0:4864:20::42f; Original-Received: by mail-pf1-x42f.google.com with SMTP id k17so19313447pff.8 for ; Tue, 28 Sep 2021 09:04:19 -0700 (PDT) X-Received: by 2002:aa7:9e0f:0:b0:445:636b:3305 with SMTP id y15-20020aa79e0f000000b00445636b3305mr6340008pfq.38.1632845058007; Tue, 28 Sep 2021 09:04:18 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id g9sm20777095pfh.13.2021.09.28.09.04.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 09:04:17 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id 6CE9FA1A8; Tue, 28 Sep 2021 12:04:06 -0400 (EDT) In-Reply-To: <80a3d759-3f29-44d8-9a43-5890dcf9b70en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=qnktNb7q; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::42f as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@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:29314 Archived-At: Not sure what is happening here, but yes, an issue on the tracker would be welcome. I note also that because the data-background-image attribute is retained on the h1 element as well as being propagated to the section element, we get two copies of the encoded image. That is bad. See also https://github.com/jgm/pandoc/issues/5965 christophe dervieux writes: > Hello,=20 > > Here is a reproducible example of the issue > > curl --output background.jpg -L 'https://unsplash.com/photos/8OyKWQgBsKQ/= download?force=3Dtrue&w=3D1920' > > echo "# Slide {data-background-image=3D'background.jpg'}" > slide.md > echo "" >> slide.md > echo "Content" >> slide.md > > # Not self contained=20 > pandoc -t revealjs -s -o slide.html --metadata title=3D"test" slide.md > > # Self contained > pandoc -t revealjs --self-contained -o slide-self-contained.html --metada= ta title=3D"test" slide.md > > When using self-contained, the background image is no more working. Pando= c=20 > encodes to data: but it seems reveal.js does not know how to handle it. I= t=20 > split the encoded data: in two url component. > > It seems like a change in reveal 4 as using the same slide.md file with= =20 > different version seems to break.=20 > > What I tried:=20 > > - Pandoc 2.9.2.1 : last one compatible with reveal.js 3 I believe > =20 > pandoc.exe -t revealjs --self-contained -o slide-self-contained.html = --metadata title=3D"test" -V revealjs-url=3Dhttps://unpkg.com/reveal.js@3/ = slide.md > =20 > Works as expected=20 > - Pandoc 2.10: First to use reveal.js 4 > =20 > pandoc.exe -t revealjs --self-contained -o slide-self-contained.html= --metadata title=3D"test" -V revealjs-url=3Dhttps://unpkg.com/reveal.js@4/= slide.md > =20 > =20 > So it seems that something broke when upgrading.=20 > > Is this a known issue ? > Should I open an issue in Pandoc to track ? I believe this could be=20 > something in reveal.js not handling correctly encoded data: field. > > MANUAL still says ( > https://pandoc.org/MANUAL.html#background-in-reveal.js-and-beamer) > > Background images can be added to self-contained reveal.js slideshows and= =20 > to beamer slideshows. > > But maybe self-contained and revealjs does not work well.=20 > > Thank you > =E2=80=8B > > --=20 > 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/msgi= d/pandoc-discuss/80a3d759-3f29-44d8-9a43-5890dcf9b70en%40googlegroups.com. --=20 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 e= mail 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/m21r581ybt.fsf%40Johns-Air.hsd1.ca.comcast.net.