VSCode and Marp and Mermaid

I couldn’t get Marp to display Mermaid properly when editing .vscode > settings.json with:

    "markdown.marp.enableHtml": true,

And disabling content and script execution with: (… in upper right corner)

And inserting this code:

<!-- Add this anywhere in your Markdown file -->
<script type="module">
  import mermaid from 'https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.4.0/mermaid.min.js';
  mermaid.initialize({ startOnLoad: true });

Although it used to work …

But …. I like that loading a Markdown Preview Mermaid Support extension seemed to make things display again … I won’t ask myself any questions …