Closed ericzolf closed 1 year ago
The reason is that https://cdn.jsdelivr.net/npm/reveal.js@3.9.2/plugin/notes/notes.html is served as text/plain
(not HTML). Apparently, for security reasons: https://github.com/jsdelivr/jsdelivr/issues/18027
I don't really know if there's a workaround.
I have the same problem too.
This is actually a duplicate of https://github.com/asciidoctor/asciidoctor-reveal.js/issues/414
jsDeliver states that "serving HTML pages is not supported for security reasons". So you'd have to use a different CDN or publish through a hosting platform such as GitHub Pages, GitLab Pages, Netlify, etc.
Feel free to submit a pull request to add this information in the documentation site.
The Ruby setup instructions explain how to refer to revealjs locally (downloading the Git repo) or remotely. When using the remote method, the "s" calls a pop-up window containing only the HTML code for the speaker notes, instead of the normal "console" (which appears in local mode).
I've created a small repeater script: asciidoc-revealjs.sh.txt (1st parameter is the name of a directory where to create the presentation; the 2nd parameter if present and equal to "local" downloads the revealjs-Git repo, else revealjs is used remotely, which as said doesn't work properly).
Either something is wrong with the instructions, or something is broken (possibly between chair and keyboard).
I'm using chromium-freeworld under Fedora 37: chromium-freeworld-108.0.5359.124-1.fc37.x86_64. I also tried with firefox-108.0.1-3.fc37.x86_64, and the behavior is very similar.
Remote: vs. Local: