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

Charge le plugin "mermaid.js" si nécessaire.

parent be8923d8
......@@ -28,6 +28,7 @@ $if(theme)$
$else$
<link rel="stylesheet" href="$revealjs-url$/css/theme/black.css" id="theme">
$endif$
<link rel="stylesheet" href="$revealjs-url$/plugin/mermaid/theme.css">
$for(css)$
<link rel="stylesheet" href="$css$"/>
$endfor$
......@@ -276,6 +277,9 @@ $endif$
{ src: '$revealjs-url$/plugin/highlight/highlight.js', async: true, condition: function() {
return !!document.querySelector('pre.sourceCode');
}},
{ src: '$revealjs-url$/plugin/mermaid/index.js', async: true, condition: function() {
return !!document.querySelector('pre.mermaid');
}}
]
});
</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