Demo that generates revealjs w/highlightjs support #11418
Replies: 4 comments
-
|
Why not use pandoc's built-in highlighting? |
Beta Was this translation helpful? Give feedback.
-
|
Yes, I have been doing that for a long time, and it works very well. But highlightjs allows dynamic highlighting of lines with automatic scrolling. See, for example, the 3 slides beginning from this one: https://revealjs.com/demo/#/5 |
Beta Was this translation helpful? Give feedback.
-
|
Now that we have the see related #3858 |
Beta Was this translation helpful? Give feedback.
-
|
Closing discussion here - can continue on #11420 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
reveal.js works well with highlight.js (on its own), but when pandoc generates revealjs slides, it is not possible (as far as I can see) to simply integrate highlight.js. There are two reasons:
<pre [attributes]><code>..., but highlight.js expects<pre><code [attributes]>...RevealHighlightplugin inReveal.initialize(.I've made a miniature working demo that enables pandoc to generate revealjs slides that seem to work well with highlight.js. I'm sure something I did could be simpler, but it boils down to:
Here's the demo. Feedback is welcome. I'm going to try to use this in my teaching workflow.
https://github.com/ghamerly/pandoc-revealjs-highlightjs
Beta Was this translation helpful? Give feedback.
All reactions