Skip to content

Commit

Permalink
Fix mermaid integration in docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
daemontus committed May 4, 2022
1 parent 1140368 commit 1551c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Once document is loaded, we init mermaid with a specific set of html elements (since
// we don't use standard class).
// We also add a special class to chart parents so we can style them.
var charts = document.getElementsByClassName("language-mermaid");
var charts = document.querySelectorAll(".language-mermaid > code");
for (var i = 0; i < charts.length; i++) {
charts[i].parentElement.classList.add("mermaid-parent");
}
Expand Down

0 comments on commit 1551c15

Please sign in to comment.