reveal.js icon indicating copy to clipboard operation
reveal.js copied to clipboard

Background image with base 64 encoded data URIs that embed newlines does not work any more (since 4.1.1)

Open lechten opened this issue 3 years ago • 3 comments

Hi there, with reveal.js up to 4.1.0, one could use background images encoded as data URIs. With 4.1.1, this stopped working. Now, the data URI is broken into two URLs, which does not work: url("data:image/jpg;base64"), url("/9j/4A...")

lechten avatar May 23 '22 09:05 lechten

Actually, I do not observe two URLs any more with reveal.js 4.3.1 and master, but just an empty div.slide-background-content.

lechten avatar May 23 '22 12:05 lechten

For me, the problem seemed to only apply when there was line-breaks in the data-uri. Hence this change to org-re-reveal for generating data-uris without line breaks: https://gitlab.com/oer/org-re-reveal/-/merge_requests/35

andersjohansson avatar Jun 21 '22 20:06 andersjohansson

Indeed, many thanks, @andersjohansson! This is a workaround for org-re-reveal.

I updated the title of this issue to reflect newlines as major cause.

lechten avatar Jun 22 '22 06:06 lechten