MaterialXLab API
0.0.1
APIs For MaterialXLab Libraries
Loading...
Searching...
No Matches
mermaid_header.js
Go to the documentation of this file.
1
// Include the Mermaid.js library
2
var
script
= document.createElement(
'script'
);
3
script
.src =
'https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.min.js'
;
4
script
.onload =
function
() {
5
mermaid.initialize({
6
startOnLoad:
true
,
7
theme: document.body.classList.contains(
'vscode-dark'
) || document.body.classList.contains(
'vscode-high-contrast'
)
8
?
'dark'
9
:
'default'
10
});
11
};
12
document.head.appendChild(
script
);
script
var script
Definition
mermaid_header.js:2
mermaid_header.js