Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reveal JS Example appears broken #8749

Closed
laughingbiscuit opened this issue Apr 4, 2023 · 4 comments
Closed

Reveal JS Example appears broken #8749

laughingbiscuit opened this issue Apr 4, 2023 · 4 comments
Labels

Comments

@laughingbiscuit
Copy link

Explain the problem.

Navigate to https://pandoc.org/demo/example16d.html ( the revealjs result of number 16 in https://pandoc.org/demos.html ) . The slides are not rendered correctly. The same problem persists when generated locally.

The issue looks similar to #6408 from a few years ago.

To replicate:

./pandoc/bin/pandoc -t revealjs -s -o index.html slides.md

Source markdown:

$ cat slides.md
% Eating Habits
% John Doe
% March 22, 2005

# In the morning

- Eat eggs
- Drink coffee

# In the evening

- Eat spaghetti
- Drink wine

# Conclusion

- And the answer is...

please note, i have removed the maths line, for simplicity

Pandoc version?

Latest GH binary

$ ./pandoc/bin/pandoc -v
pandoc 3.1.2
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: /home/.local/share/pandoc
Copyright (C) 2006-2023 John MacFarlane. Web:  https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.
@laughingbiscuit
Copy link
Author

Looks like the css sources cannot be reached e.g. https://unpkg.com/reveal.js@%5E4//dist/theme/black.css

@laughingbiscuit
Copy link
Author

not sure if this is a temporary outage on unpkg or if srcs should be switched to another cdn e.g. https://cdnjs.com/libraries/reveal.js/4.4.0

@laughingbiscuit
Copy link
Author

laughingbiscuit commented Apr 4, 2023

Successful workaround using jsdelivr CDN (used this as it included the expected /dist dir, unlike other CDNs):

./pandoc/bin/pandoc -t revealjs -s -o index.html slides.md -V revealjs-url=https://cdn.jsdelivr.net/npm/[email protected]

@jgm
Copy link
Owner

jgm commented Apr 4, 2023

looks like it was a temporary outage.

@jgm jgm closed this as completed Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants