You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to integrate reveal.js into one of my pre-existing react applications. The docs seem to mostly only cover getting reveal.js setup in a one-off basic html script, which I'm not interested in.
I've got the slides rendering to the DOM as react components so far, but there is no code highlighting. Attempting to fix this, I see the guides show the RevealHighlight plugin.
deck.initialize({plugins: [RevealHighlight]})
But I am left wondering where to resolve RevealHighlight from. I am not seeing anywhere to import it from.
The guide just says to have a <script src="plugin/highlight/highlight.js"></script>.
I could manually import from the node_modules/ (which I now see as the recommended way here
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am attempting to integrate reveal.js into one of my pre-existing react applications. The docs seem to mostly only cover getting reveal.js setup in a one-off basic html script, which I'm not interested in.
I've got the slides rendering to the DOM as react components so far, but there is no code highlighting. Attempting to fix this, I see the guides show the
RevealHighlight
plugin.But I am left wondering where to resolve
RevealHighlight
from. I am not seeing anywhere to import it from.The guide just says to have a
<script src="plugin/highlight/highlight.js"></script>
.I could manually import from the
node_modules/
(which I now see as the recommended way herebut that seems improper. I also get the ts alert
Beta Was this translation helpful? Give feedback.
All reactions