From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29309 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: christophe dervieux Newsgroups: gmane.text.pandoc Subject: revealjs background and self contained not working anymore Date: Tue, 28 Sep 2021 02:21:18 -0700 (PDT) Message-ID: <80a3d759-3f29-44d8-9a43-5890dcf9b70en@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_790_27915834.1632820878166" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8848"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDDJDKUZ7QORBD55ZOFAMGQEIDQXDHA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 28 11:21:22 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f61.google.com ([209.85.210.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mV9Ig-00026y-7R for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 28 Sep 2021 11:21:22 +0200 Original-Received: by mail-ot1-f61.google.com with SMTP id l32-20020a9d1ca0000000b00546e6ec87afsf20367750ota.11 for ; Tue, 28 Sep 2021 02:21:22 -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=LFMt1qPqbh4gCBH1GJblvPcWkMkuX6VfqwJ7rUHgvhE=; b=fU7BSjjzJpCcT16kTaXg9WKcRyiXLzIR+/+pGw0/iHYBIwCdMOpWUfWqajcw7APOTv pw1v8pq5aGsw6YKpzcrieqrZ8xJTf8tIuWTfNwwO9mm+hdzfpjgUFJjCAkd6kdoGhHdG KC7BFYp4MAd44zoXPJaKrBLyna72SWfpyJwzy+m1jfAHMGaA5jeuzy3YWkFDQHxTwpd8 AzRKE2hWN7r52CksY4NKBun1XTGZTHD/Sk0tQwow4F9cDwdHfxnQPbCyhbWBsH2Ihg9M IJ1o9LcTcIt1ktrLidVRC+ewxEAfEMbXNAiRQLo32CSlkSCz9ud66+2iHpMCwHXPCSOP P8qg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=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=LFMt1qPqbh4gCBH1GJblvPcWkMkuX6VfqwJ7rUHgvhE=; b=Kx0MNgHNXtTAOjn738DlG5ruQh3oxYT5vT6eZL8jE3oRXk/ll982SDUUrei3/ad5nV bf9/zI1ylzxoo1quU8HXO9N4SesnP/00ThDn4Zde41xRs4muSxsOFqRbXjMqP93ihkDw 2rrNnrFTHvXtjYhxgnaQ7JnyM8ZYjHFK5WbmhnY/a5VvKkBB8BGC3zxtlY+qCA1VPMOY yJJgp3W9dqC3GCweFBMEL4JJbuYd/5IeP6KgqvMHY3NZx9gFn6TlNqVVG+JAw1E0rbnL aH7DxpesCjkcDm/KTOJa4GKGZ3sKxOpj2uFva62htRita8NRSpNP1j3/n74I/EVpAXjO FuLQ== 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=LFMt1qPqbh4gCBH1GJblvPcWkMkuX6VfqwJ7rUHgvhE=; b=NQm5+/rO4K3Bbz6Q4ixUSTgr6uofkdZR/zcslzZqwdx11GJpk0yd5NQF20WTPpHjb4 uxKeDc407zg7KOSICzPH1sZEWn6aMFiHE9wDflWuuxicPw3P3kzsr8qPeNub8Wa2IVOv c65GjesJ1oEMfveqP3/fsjMqIzGOu470n7OYk2m6r40uufLGjc06QqPHiyPKuV3AwO6l K+HxqQM1EyIa9JBM5ujRbf1x70TrrwSzEAOgSVvQYT3tKu0rv/0PMuO1Q1lGHEITBRbn siN8B+/UkjKsTK9OpOGY+vlpYGZE9AJ8ttSVG+EL0hGUiDCUvDnWp8gXNO5lF6PmIr+4 xGSA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5302Zhk1vR160Y8q2YCQO6Tc+n8IQ9Z1T98AxCpmzV/SBJRUFMJF 0wnHarrEztAqQ2lxM9MS8Pw= X-Google-Smtp-Source: ABdhPJxbWutvHgKA5dNez9lF1Darkmv7BubhPpMu1Bc/WMA10eqpxpIkBYc2cDGHXx3xVsfqtZcLfA== X-Received: by 2002:a05:6808:57:: with SMTP id v23mr2851169oic.172.1632820880700; Tue, 28 Sep 2021 02:21:20 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:1e02:: with SMTP id m2ls2842987oic.2.gmail; Tue, 28 Sep 2021 02:21:19 -0700 (PDT) X-Received: by 2002:a05:6808:1387:: with SMTP id c7mr2837018oiw.137.1632820878790; Tue, 28 Sep 2021 02:21:18 -0700 (PDT) X-Original-Sender: christophe.dervieux-Re5JQEeQqe8AvxtiuMwx3w@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:29309 Archived-At: ------=_Part_790_27915834.1632820878166 Content-Type: multipart/alternative; boundary="----=_Part_791_1434056915.1632820878166" ------=_Part_791_1434056915.1632820878166 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello,=20 Here is a reproducible example of the issue curl --output background.jpg -L 'https://unsplash.com/photos/8OyKWQgBsKQ/do= wnload?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 --metadata= title=3D"test" slide.md When using self-contained, the background image is no more working. Pandoc= =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/ sl= ide.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/ s= lide.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 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/80a3d759-3f29-44d8-9a43-5890dcf9b70en%40googlegroups.com. ------=_Part_791_1434056915.1632820878166 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello,

Here is a reproducible examp= le of the issue

curl --output background.jpg -L 'https://unsplash.c=
om/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 --metadata=
 title=3D"test" slide.md

When using self-contained, the background = image is no more working. Pandoc encodes to data: but it seems reveal.js does not know how to handle i= t. It split the encoded data: in two url component.

It seems like a change in re= veal 4 as using the same slide.md<= /code> file with different version seems to break.

What I tried:

  • Pandoc 2.9.2.1 : last one compatible with = reveal.js 3 I believe
     pandoc.exe -t revealjs --self=
    -contained -o slide-self-contained.html --metadata title=3D"test" -V reveal=
    js-url=3Dhttps://unpkg.com/reveal.js@3/ slide.md
    
    Works as expected
  • Pandoc 2.10: First to use reveal.js 4
      pandoc.exe -t revealjs --self-contained -o slide-self=
    -contained.html --metadata title=3D"test" -V revealjs-url=3Dhttps://unpkg.c=
    om/reveal.js@4/ slide.md
    

So it seems that something b= roke when upgrading.

Is this a known issue ?
S= hould I open an issue in Pandoc to track ? I believe this could be somethin= g in reveal.js not handling correctly encoded data: field.

MANUAL still says (http= s://pandoc.org/MANUAL.html#background-in-reveal.js-and-beamer)

Background images can be add= ed to self-contained reveal.js slideshows and to beamer slideshows.

But maybe self-contained and revealjs does not work well.

Thank you

=E2=80=8B

--
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/80a3d759-3f29-44d8-9a43-5890dcf9b70en%40googlegroups.= com.
------=_Part_791_1434056915.1632820878166-- ------=_Part_790_27915834.1632820878166--