@farberg/reveal-template 1.0.47 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -56,7 +56,6 @@ export default () => {
|
|
|
56
56
|
init: (deck) => {
|
|
57
57
|
|
|
58
58
|
deck.on('ready', () => {
|
|
59
|
-
const highlightPlugin = deck.getPlugin("highlight")
|
|
60
59
|
|
|
61
60
|
for (let el of deck.getRevealElement().querySelectorAll("a[data-code]")) {
|
|
62
61
|
//console.log(`Loading code snippets, looking at`, el)
|
|
@@ -87,7 +86,9 @@ export default () => {
|
|
|
87
86
|
}
|
|
88
87
|
}
|
|
89
88
|
|
|
90
|
-
|
|
89
|
+
// Highlight all code snippets
|
|
90
|
+
const highlightPlugin = deck.getPlugin("highlight")
|
|
91
|
+
highlightPlugin.hljs.highlightAll()
|
|
91
92
|
})
|
|
92
93
|
|
|
93
94
|
}
|