<script src="https://unpkg.com/mermaid@8.13.2/dist/mermaid.min.js"></script> <script> mermaid.initialize({ startOnLoad: window.clientInformation.userAgent.includes(`Electron`) ? true : false, flowchart: { useMaxWidth: true, htmlLabels: true, curve: 'cardinal' }, securityLevel:'loose' }); </script> <script> // 버그픽스: mermaid window.target = document.querySelector("#p"); window.observer = new MutationObserver(function(mutations) { mutations.some(function(mutation) { if (mutation.target.classList.contains(`bespoke-marp-active`) && mutation.target.querySelector(`.mermaid`)) { window.mermaid.init(undefined,document.querySelectorAll(".mermaid")); return true; } }); }); window.config = { attributes: true, childList: true, subtree: true || null, }; window.observer.observe(target, config); </script>