Commit be8923d8 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Charge "dynamiquement" le plugin "highlight.js".

parent eebe2d77
......@@ -273,7 +273,9 @@ $if(mathjax)$
{ src: '$revealjs-url$/plugin/math/math.js', async: true },
$endif$
{ src: '$revealjs-url$/plugin/notes/notes.js', async: true },
{ src: '$revealjs-url$/plugin/highlight/highlight.js', async: true }
{ src: '$revealjs-url$/plugin/highlight/highlight.js', async: true, condition: function() {
return !!document.querySelector('pre.sourceCode');
}},
]
});
</script>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment