From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29312 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:06:31 -0700 (PDT) Message-ID: <16a09ef6-0b0c-439b-a2ef-9bddfdcf0f0bn@googlegroups.com> References: <80a3d759-3f29-44d8-9a43-5890dcf9b70en@googlegroups.com> <34ae236d-5f4e-42be-8e18-68a5ce5b6f08n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_948_713301075.1632823591024" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37044"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDDJDKUZ7QORBKGSZOFAMGQEJNWAEEY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Sep 28 12:06:35 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f58.google.com ([209.85.161.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mVA0Q-0009Ok-Rp for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 28 Sep 2021 12:06:34 +0200 Original-Received: by mail-oo1-f58.google.com with SMTP id q3-20020a056820028300b002a9a312d6fdsf23692203ood.21 for ; Tue, 28 Sep 2021 03:06:34 -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=A7/e8+xM1RYKB8cXlpJJsgs/Er/MvgqFlKSL+15dfC0=; b=BSqehs03IOZ0jTVhBjb+RfcEHGn99VGDmFoYoGirgPGoSoTgc/fCOBiibqS+eOKDy2 i88TZvEOKzq0WtmNFzwvGhDRGQMpvvUKJBZ9c2AETXCXc8BuBp5nZMadwfe2gB1ekCG9 lTvzWZEa5YuzDqxANWLCk7QcLD38ygXnOOJv+W4KtJjjKwZJBs+80dFX+NdfNDpU7rE8 9qY8cNUd2deYtCu3ERJLY8DnL8oEB8C5WQku23xEsN+m83DEsaes3bhcWlQnQ+FURgKV hTAcz8eHHV0bFngy6TBDZtcPfYHhUCRMJyGM/RD4e9J09kJyduKTQBIYQzcfpYBt6jSX EySA== 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=A7/e8+xM1RYKB8cXlpJJsgs/Er/MvgqFlKSL+15dfC0=; b=DT3RqYOgOsBMmxIy0iQkkcL3LYNl2Jd/FVJ3LyFP16uqxK/i1AS2dCsZDlaHulBw4D Pl0+jFGroSkr6AY+8FbOki+OOUjXDxCQXncbR/5L4gIziFVYZ2BEFS67/pjw4NapkeeB kfKHXHy9QCjvG8uNQZgFDSY27iW5oRWeUqLwVRvwTQFkn2gEs4D4eh2XyCGGV4W0zeH6 0xDDFyW12p3VQkaiMoHY5UhmcRPNdXUDexWlXHkMD72F5LwLQExihaPPQFnfQCzrWPR1 3wvX9nm/JBF4rC5/XGoGrnKlUdCBOaXzbtuC3WAoVFqXx2pM4TPAy98+5pp9GWITfO83 FzAA== 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=A7/e8+xM1RYKB8cXlpJJsgs/Er/MvgqFlKSL+15dfC0=; b=a8XRt2pJA7CgjoOO7N7NagRLvk0o6CF90XsB69v5qUfFkCg8ZBs+VmfvH2snHRvvz/ sYyCQXB+erIKN1p4xiGGy0klDT5Wb5530b5++U17a9GX8Zp8s6CqIKxdvfpas6nm6jQE UuIHKM0+8b3zzVc4nPe075f89DKdvM03ZJs66Vpw6dUcV9zdzsvUjo8WW6BpxB6q0CQa aFevSI8gQAnmarJzmgwTnPoLlpmKsAHt/mijWfs4CXi0P+6K6e+zaZgz18pLuDPbxuIM /aY765mdImofPuvBgM6j7tewDWyINUJhp90MUaZJt4wbvsZZcyljjGqQlHqm5lk2vmQK okEg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531wczVtzR34noJgnBBPB0cDZ+s8/OL41+jP7w1LSkWJt0Nt05re K3wrE4xSpLjXTjnFjoHAbIE= X-Google-Smtp-Source: ABdhPJwdIO2DExSfp48fbgnhz9WCqLON9n4jVt1t9iqdGgKzoy9jwH1edyhjqw6kms8gWqXv9o+qjQ== X-Received: by 2002:a05:6808:1211:: with SMTP id a17mr2921985oil.91.1632823593401; Tue, 28 Sep 2021 03:06:33 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:19e7:: with SMTP id k94ls327713otk.7.gmail; Tue, 28 Sep 2021 03:06:31 -0700 (PDT) X-Received: by 2002:a9d:609:: with SMTP id 9mr287100otn.231.1632823591555; Tue, 28 Sep 2021 03:06:31 -0700 (PDT) In-Reply-To: <34ae236d-5f4e-42be-8e18-68a5ce5b6f08n-/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:29312 Archived-At: ------=_Part_948_713301075.1632823591024 Content-Type: multipart/alternative; boundary="----=_Part_949_553259110.1632823591024" ------=_Part_949_553259110.1632823591024 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Found the related issue: https://github.com/hakimel/reveal.js/issues/2978 Le mardi 28 septembre 2021 =C3=A0 12:05:35 UTC+2, christophe dervieux a =C3= =A9crit : > 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 --metada= ta title=3D"test" -V revealjs-url=3Dhttps://unpkg.com/reve...@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 --metad= ata 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.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 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/16a09ef6-0b0c-439b-a2ef-9bddfdcf0f0bn%40googlegroups.com. ------=_Part_949_553259110.1632823591024 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Found the related issue: https://github.com/hakimel/reveal.js/issues/2= 978

Le mardi 28 septembre 2021 =C3=A0 12:05:35 UTC+2, christophe dervieux a = =C3=A9crit=C2=A0:

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-contained.html --metadata title=3D"test"=
 -V revealjs-url=3Dhttps=
://unpkg.com/reve...@4.1.0/ slide.md
=E2=80=8B
Le mardi 28 sep= tembre 2021 =C3=A0 11:21:18 UTC+2, christophe dervieux a =C3=A9crit=C2=A0:<= br>

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/16a09ef6-0b0c-439b-a2ef-9bddfdcf0f0bn%40googlegroups.= com.
------=_Part_949_553259110.1632823591024-- ------=_Part_948_713301075.1632823591024--