From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29311 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: christophe dervieux Newsgroups: gmane.text.pandoc Subject: Re: revealjs background and self contained not working anymore Date: Tue, 28 Sep 2021 03:05:35 -0700 (PDT) Message-ID: <34ae236d-5f4e-42be-8e18-68a5ce5b6f08n@googlegroups.com> References: <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_1092_1286082404.1632823535496" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31416"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDDJDKUZ7QORB4GRZOFAMGQERVFC73A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 28 12:05:39 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f57.google.com ([209.85.210.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mV9zX-0007vN-CN for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 28 Sep 2021 12:05:39 +0200 Original-Received: by mail-ot1-f57.google.com with SMTP id x27-20020a9d705b000000b005470c0ed087sf20531470otj.10 for ; Tue, 28 Sep 2021 03:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=REYz6GYfYwr0C9KRQPH6ZlH4ZARYPySp0kgAn5yLjBg=; b=R969SrTW8/oOvzXIYnZACsHN7+lPPXYB0w6mZQg+bom3ifhJ4cQY3vGhPR26PX73Ag p0f2YZWlB9s6kM0yMATQr1TYoU7vFk6teGWGSh5AzYmKDVQqHrSohBAfSssPqBjkn2FZ onTg6bIWQ4ZfzCmeK8jSmyxzkQtF2mg6nY1Xueh/1OueAbCHfAps6k+2noiH+Zm2gPoI IA+pxeCwLyY0OC2BlXf7HcU5dcwCfze+PlOFW4G0Jorh3qxAcwXLZt7YZqvBNn3bNQF1 iz6taShtoJCnru3xObWo3V0t6O0ke6CGCyDqFX/DJjAcKrTL2nlmpnYyJnd4eMKnbKIy uHXA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=REYz6GYfYwr0C9KRQPH6ZlH4ZARYPySp0kgAn5yLjBg=; b=QVuYPNhnrs19rGicP/SKiT42RU8KF85jol2fxMNtZRovrRn+ogFv4rrjXpRhNk/zmj 4A6WNVd/T2UVqRbYXp0MxRMs0OZ0TFZRUGO4NPdXLXlltIzDJplMp1XrxmkOWBKmkOrf 60hluXEoIz25Dn19U5If/jmnILwUa196KaYLPIfpQKfW/FzrOxGvPeDhYfm9UhOMlE6V CMg0vjOcRSDWxzXcRfJa27PW4QhRSuu4J3aUJr880peiHGtKEY7na/Er5bp7j6tD6X+c +iTqOwAVTb2ub1S+/RQPSDecqUVXyfzvhLyzNJ3N0dsIPr5yx4ybM69xIYNpV87cOwCS zI0g== 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:in-reply-to :references: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=REYz6GYfYwr0C9KRQPH6ZlH4ZARYPySp0kgAn5yLjBg=; b=7YaN40INVxfocK3h0N90VEBxtwV9YG4FApQrPyQfLOqgNBUDJ5q7DINkU4C+ofT7+V 5WbILVR0YmONCSOtzLQyYjMO5DekVTQ6j94lmW29P7U7cDwoUhkHSOtZBjfpvw4+R0VQ mL/348/tCWmGac0Ovk+2pvA/R0hr3T1UhEJM2aqbh8s6Uh/336LH+ldKxp3SUFTywO8h FVg2xW8cRc+eSjtTTJ/8RF8ys8+6fSQHol4dckVKLhWNPj/KjCbWTIRlWIggpCiOD273 aJqsCyu6UY8kIS4LOBoQVUx4E/0sXF66hq6LiLeXmYseOQKE6A5dPjD+dDR9MhGf6gv8 BSVg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533XR57zhtJlDIFEVXvAAcwo9qQaYYVMbOAw6D7oOL6oksvhEfTO jgh7Naftrbfbe4eeceUeKPs= X-Google-Smtp-Source: ABdhPJzEhBylzr7AcXWMeMURLSYPLhBRxbarb23aPLQALA6kcDczua7aHrlJrbGbFv5UylZdHqAzCA== X-Received: by 2002:a9d:600d:: with SMTP id h13mr4249449otj.265.1632823537806; Tue, 28 Sep 2021 03:05:37 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:1285:: with SMTP id a5ls6428633oiw.3.gmail; Tue, 28 Sep 2021 03:05:36 -0700 (PDT) X-Received: by 2002:aca:32c2:: with SMTP id y185mr2936234oiy.47.1632823536034; Tue, 28 Sep 2021 03:05:36 -0700 (PDT) In-Reply-To: <80a3d759-3f29-44d8-9a43-5890dcf9b70en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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:29311 Archived-At: ------=_Part_1092_1286082404.1632823535496 Content-Type: multipart/alternative; boundary="----=_Part_1093_1041787799.1632823535496" ------=_Part_1093_1041787799.1632823535496 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This is definitely something in revealjs that change in version 4.1.1. It= =20 works ok with 4.1.0 pandoc -t revealjs --self-contained -o slide-self-contained.html --metadata= title=3D"test" -V revealjs-url=3Dhttps://unpkg.com/reveal.js@4.1.0/ slide.= md =E2=80=8B Le mardi 28 septembre 2021 =C3=A0 11:21:18 UTC+2, christophe dervieux a =C3= =A9crit : > 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.=20 > Pandoc encodes to data: but it seems reveal.js does not know how to=20 > handle it. It 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 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/34ae236d-5f4e-42be-8e18-68a5ce5b6f08n%40googlegroups.com. ------=_Part_1093_1041787799.1632823535496 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

This is definitely so= mething in revealjs that change in version 4.1.1. It works ok with 4.1.0

pandoc -t revealjs --self-contained -o slide-self-c=
ontained.html --metadata title=3D"test" -V revealjs-url=3Dhttps://unpkg.com=
/reveal.js@4.1.0/ slide.md
=E2=80=8B
Le mardi 28 septem= bre 2021 =C3=A0 11:21:18 UTC+2, christophe dervieux a =C3=A9crit=C2=A0:

Hello,

Here is a reproducible example = of the issue

curl --output background.=
jpg -L 'https://u=
nsplash.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" sli=
de.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. P= andoc encodes to data: but it seems reveal.js does = not know how to handle it. It split the encoded data: in two url component.

It seems like a change in revea= l 4 as using the same slide.md file with different = version seems to break.

What I tried:

  • Pandoc 2.9.2.1 : last one compatible with re= veal.js 3 I believe
     pando=
    c.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
    
    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=
    .com/reveal.js@4/ slide.md
    

So it seems that something brok= e when upgrading.

Is this a known issue ?
Shou= ld I open an issue in Pandoc to track ? I believe this could be something i= n reveal.js not handling correctly encoded data: fi= eld.

MANUAL still says (https://pandoc.org/MANUAL.html#background-in-re= veal.js-and-beamer)

Background images can be added = 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/34ae236d-5f4e-42be-8e18-68a5ce5b6f08n%40googlegroups.= com.
------=_Part_1093_1041787799.1632823535496-- ------=_Part_1092_1286082404.1632823535496--