From 8e4eea4338aa8deb05cee2cb247c6d5188298750 Mon Sep 17 00:00:00 2001 From: Christophe Dervieux Date: Fri, 26 Jul 2024 18:08:06 +0200 Subject: [PATCH] Use a patch version of reveal-chalkboard plugin this is an unreleased version with a fix for Reveal.js 5.0.3 change regarding overlay styling --- configuration | 4 +++- package/src/common/update-html-dependencies.ts | 2 +- src/resources/formats/revealjs/plugins/chalkboard/plugin.js | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configuration b/configuration index e341034f59..b45b9762de 100644 --- a/configuration +++ b/configuration @@ -37,7 +37,9 @@ export TIPPY_JS=6.3.7 export PDF_JS=2.8.335 export REVEAL_JS=5.1.0 export REVEAL_JS_MENU=2.1.0 -export REVEAL_JS_CHALKBOARD=4.2.5 +# unrelease version needed for a fix with Reveal.js 5 +# https://github.com/rajgoel/reveal.js-plugins/pull/180 +export REVEAL_JS_CHALKBOARD=8408d5a265abf74a042122520bbb4fd0d31feaed export REVEAL_JS_PDFEXPORT=2.0.1 export LIST_JS=2.3.1 export DAY_JS=1.11.7 diff --git a/package/src/common/update-html-dependencies.ts b/package/src/common/update-html-dependencies.ts index 1a59515be2..4d7e4c7492 100644 --- a/package/src/common/update-html-dependencies.ts +++ b/package/src/common/update-html-dependencies.ts @@ -386,7 +386,7 @@ export async function updateHtmlDependencies(config: Configuration) { ); return Promise.resolve(); }, - false, // not a commit + true, // true if commit, false otherwise false, // no v prefix, ); diff --git a/src/resources/formats/revealjs/plugins/chalkboard/plugin.js b/src/resources/formats/revealjs/plugins/chalkboard/plugin.js index 2672110fd2..6dfb4b5a5f 100644 --- a/src/resources/formats/revealjs/plugins/chalkboard/plugin.js +++ b/src/resources/formats/revealjs/plugins/chalkboard/plugin.js @@ -443,6 +443,7 @@ const initChalkboard = function ( Reveal ) { container.style.opacity = 1; container.style.visibility = 'visible'; container.style.pointerEvents = 'none'; + container.style['backdrop-filter'] = 'none'; var slides = document.querySelector( '.slides' ); var aspectRatio = Reveal.getConfig().width / Reveal.getConfig().height;