MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / initializeMermaid

Function initializeMermaid

src/pages/markdownPreview/index.js:166–172  ·  view source on GitHub ↗
(mermaid)

Source from the content-addressed store, hash-verified

164}
165
166function initializeMermaid(mermaid) {
167 const config = getMermaidThemeConfig();
168 const signature = JSON.stringify(config);
169 if (signature === mermaidThemeSignature) return;
170 mermaid.initialize(config);
171 mermaidThemeSignature = signature;
172}
173
174async function copyText(text) {
175 if (cordova?.plugins?.clipboard) {

Callers 1

renderMermaidBlocksFunction · 0.85

Calls 2

getMermaidThemeConfigFunction · 0.85
initializeMethod · 0.45

Tested by

no test coverage detected