-
Notifications
You must be signed in to change notification settings - Fork 188
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
resolves #21 load highlight.js from a CDN #320
resolves #21 load highlight.js from a CDN #320
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be backward compatible, we could use a local file assets/highlight.min.js that contains all the languages but I don't think it's a good solution (as you will rarely use all the 185 languages in a presentation).
If we merge this in 3.x, we should provide the bundled asset with all languages (no regression policy). Then in 4.0.0 we can drop the bundle and mention in the upgrade notes how to pull in the additional languages.
Or we could delay this to 4.0.0.
No rush, I'm just experimenting for now to fully understand the impact 😉 |
5a3c238
to
e8f332a
Compare
It's based on reveal.js 3.9.2 |
Alright, time for you to rebase. |
52d550d
to
492653d
Compare
Done 👍 |
e827a74
to
8e0d346
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've finished reviewing. It's great! I like the languages support and really grateful that keeping it up in sync shouldn't be too complicated.
Two little comments to address / discuss, then I'll merge.
Thanks for your review, I will take care of them later tonight or tomorrow. I've also sent a pull request on reveal.js to load highlight.js from a custom location: hakimel/reveal.js#2580 |
8e0d346
to
ad8f3f3
Compare
ad8f3f3
to
ff7e1f5
Compare
resolves #21
It also resolves #319 even though it can be seen as a regression because the reveal.js highlight plugin contains all the languages by default.
To be backward compatible, we could use a local file
assets/highlight.min.js
that contains all the languages but I don't think it's a good solution (as you will rarely use all the 185 languages in a presentation).