From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29315 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 10:05:47 -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="26580"; mail-complaints-to="usenet@ciao.gmane.io" To: christophe dervieux , pandoc-discuss Original-X-From: pandoc-discuss+bncBCJZJHG45QDBB6EWZWFAMGQEAOMME6Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 28 19:06:05 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f64.google.com ([209.85.216.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mVGYO-0006h9-NA for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 28 Sep 2021 19:06:04 +0200 Original-Received: by mail-pj1-f64.google.com with SMTP id 41-20020a17090a0fac00b00195a5a61ab8sf3305934pjz.3 for ; Tue, 28 Sep 2021 10:06:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1632848763; cv=pass; d=google.com; s=arc-20160816; b=SYl8QQWtivWYH5UEbjOtdJUQ21VRLqSn2vvtfhuhauDK5NRuu3P+fQ6rl1RXBvZmVl WxudYkyAX7qyR+ofarbrtDwFrH5zljYCsiSeRxuARTrK0efwe2TCgmhshUETpVnhQQar Kaac6+58YUiKWeC0sNVXcAPDhPfQhdR5Hl9K1n78fdBROtFSzzvhkwH7zid0fUHIBeMU HdI81HMwr9RPso+EPCxJXbiOdTTcck+YgL7r2+HGA9wWZNZANyYY17hZ1yvKjNS9ztTS m9yLYgXTqZ5V9Cx4fdTB/p/KQo7B8gtEZv/FYJZsp70wTdpYSynoPVjrsw5iTebwVTXi rmoA== 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=lCLjW+vUegCXHm7/gPV3kGJwmikRQAXFF3nBEcXPhlE=; b=aScETgE+qFvoEzOT+PyhYYIEhimE1RNOX89QNQOdc1BatDLy/mwgZ/ebxhJLfweBRd DG2SrOtbq3KnHZKAjjQtmDz3SdF9jl5tbivjAEvG+NSdIK+wPsswVOho8GkG7WCQGcq1 IsOjilFmkaz5th5ssk4h5JTexEZUKp3uh1SqZIdYG8J8VbbnENiBkjbwLtpzJW6e8f9v HL6TlftAnVzneHKqS+UwnqPeEmr4spkZA+/H/tHh0KF52SVeECOHQtfl5tFdDAt7N32f clanW/FE2PYjK361v1twVeQQI6UvY5HUv/DkFmLawwLnRFvY/7etgcgwUL/+6cmMAw04 q7Sg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=BESZvIQd; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::530 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=lCLjW+vUegCXHm7/gPV3kGJwmikRQAXFF3nBEcXPhlE=; b=Z1SIUGnCXlwKbVuLLxXRLU/IlTgOkebcaq4IVloQ1Q+ndyddU1bm2IGnAU36IGKMs3 QdiuHXZgql0jJWoPl7616UmzeOdjxPikQlbiQLOR/wRIMKm73h0X6IK42gHljSdkdXSI 5pCmLpO1R/vNbD2MBebraDHwUOSmARxo+f+5XY6BabjVUf7Ds0Fmx9y2gDYybLVp20LP /Yf4fXqqplHXFy8p+bFaCvXYXChlBn9d2IecbNCGxQyDp179nYfWZUOmrgCgZFLI1O3Q Z9xrc7gueAEMa4gZ2a3KfvVBK1vwW6q58QvrLOHAwYidFP0vODU9CHTonVZ3/gOPH6of Nqxg== 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=lCLjW+vUegCXHm7/gPV3kGJwmikRQAXFF3nBEcXPhlE=; b=Vgt4d+wgjvxlYUoT2C4OKXkmchTu5N8AerMdCtyG0kHzO/r5chCFEhgYDhcrG69Rlr mhinA4Ohaop0P7KXMWIg6g02yp3DBJnjdSo4ZvdjAQKNTP3iKXWQK6hjcdxDeZrzk4Oy tEm5MlTxIavS2a4EmSDi/pMGLbhInQ7NP/VssgW82FPvbd86gHNn/0Armr1gvliwJJ5g EylXw6g0ssban/tpRA3PWj20hMJuXH4MDTrpliY4KCkmZfKZuJI5k3DU9J9D+jxf09FG hDlfhWHUNBAYfsIxdaUZ5/ygFSvGDh2zRRThr66FrBPMgPCfmnyLAQ8qqbXt2o9mnFe3 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533he9e0P5ch5kfjulWTLhYGJPaCBCi5uU8mB/iyPfXQU5mmloHT ypZNuUjiLjFAM0rK807Rp/w= X-Google-Smtp-Source: ABdhPJwKB8deWvKIm6Dqoc4AM/jvNj10tfkzhPeBhthnSD0mddDl7FeqF1Cr13KeaFbUAsJ80XIG0w== X-Received: by 2002:a17:90b:4a4c:: with SMTP id lb12mr1102355pjb.55.1632848763101; Tue, 28 Sep 2021 10:06:03 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6a00:8cc:: with SMTP id s12ls8832238pfu.0.gmail; Tue, 28 Sep 2021 10:06:00 -0700 (PDT) X-Received: by 2002:a63:7941:: with SMTP id u62mr5593698pgc.461.1632848760229; Tue, 28 Sep 2021 10:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632848760; cv=none; d=google.com; s=arc-20160816; b=WczZiCNy9U+jsiajcDT8adiGeaL0UJlLwDkYEXCWyAszuDnSdbHGrLwNFRO2t1PD5j /BmJR0/IMW2Bl64q2Nzx7qaVTjomxdKCncqDjhEzauwis6wHa3ZoBWC5CxbTKnktSk1q d/K8ay6Wng6hVIttyqwHWlxmKmIchnaKIa/3Vg7stXg2BQg/zJqA3xiOFpxOnfUG9urQ WcwUXpQH2Ay/q9TboNH6hDxDF9FJ1lqaNM5ciEtXv8apg9xr81e16DjkWxD/TblgQein 0uRqRRHz8wQ21s+JwxIKYsCBV9EXI/Isbk3W8+okqQtmz1NmAWRwEppjVq7tMgHb2ZKs kk7Q== 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=eBfl6bYoJkP5F4NJGb6JY6tSKuZmj8Vj/ca+JTO/DbM=; b=Ie6gTJEuL79LVP3gyTM0/phzZ/u5StKwykzbOm5852y+al5oCLytWqFfQKU/h8aGdP tqQroI6Aeg1q+agZFg8Hnlv/JEBCxJvtJ9zkpmGIdoMeawWSPFIOn2TbQeWyvUUtJkxN O/xsZjELl254rax7H5qSrgnJm+f3qc0QgDXQjuMSvrB3EMKvs2ulDOOsXuZBjB0Nqeki XPutVyleVlpF+A9hWUhbFTA/WBx9z3g60L1PvDk9xZW6/LhTwXg9EAwwD/sDWfbqQSay seWvhVJuopNbIWVrGLdV49iQt68EbkULYKlU2a8FHlDHb/dBrvcWOM70lKLsVDMrBWRL FI6w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@berkeley-edu.20210112.gappssmtp.com header.s=20210112 header.b=BESZvIQd; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::530 as permitted sender) smtp.mailfrom=jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org Original-Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com. [2607:f8b0:4864:20::530]) by gmr-mx.google.com with ESMTPS id c11si398439pgw.1.2021.09.28.10.06.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Sep 2021 10:06:00 -0700 (PDT) Received-SPF: pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::530 as permitted sender) client-ip=2607:f8b0:4864:20::530; Original-Received: by mail-pg1-x530.google.com with SMTP id n18so21825529pgm.12 for ; Tue, 28 Sep 2021 10:06:00 -0700 (PDT) X-Received: by 2002:a63:f94c:: with SMTP id q12mr5449244pgk.171.1632848759531; Tue, 28 Sep 2021 10:05:59 -0700 (PDT) Original-Received: from johnmacfarlane.net (li55-134.members.linode.com. [74.82.3.134]) by smtp.gmail.com with ESMTPSA id i29sm98894pfk.207.2021.09.28.10.05.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Sep 2021 10:05:58 -0700 (PDT) Original-Received: by johnmacfarlane.net (Postfix, from userid 1000) id CD8BFA1A8; Tue, 28 Sep 2021 13:05:47 -0400 (EDT) In-Reply-To: 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=BESZvIQd; spf=pass (google.com: domain of jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org designates 2607:f8b0:4864:20::530 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:29315 Archived-At: Looking at the HTML using the browser's Inspect feature, I see that reveal.js is adding a div devoted to backgrounds, which uses a background-image-hash attribute. This may be constructed improperly for data URIs; anyway, this is one thing to investigate here. John MacFarlane writes: > 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 --metad= ata title=3D"test" slide.md >> >> When using self-contained, the background image is no more working. Pand= oc=20 >> encodes to data: but it seems reveal.js does not know how to handle it. = It=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.htm= l --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 an= d=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 Group= s "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit https://groups.google.com/d/msg= id/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/m2r1d8zl3o.fsf%40Johns-Air.hsd1.ca.comcast.net.