Hello,

Here is a reproducible example of the issue

curl --output background.jpg -L 'https://unsplash.com/photos/8OyKWQgBsKQ/download?force=true&w=1920'

echo "# Slide {data-background-image='background.jpg'}" > slide.md
echo "" >> slide.md
echo "Content" >> slide.md

# Not self contained 
pandoc -t revealjs -s -o slide.html --metadata title="test" slide.md

# Self contained
pandoc -t revealjs --self-contained -o slide-self-contained.html --metadata title="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 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 different version seems to break.

What I tried:

So it seems that something broke when upgrading.

Is this a known issue ?
Should I open an issue in Pandoc to track ? I believe this could be 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 to beamer slideshows.

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

Thank you

--
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-/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.