'Is there an option to include external file in Mermaid Markdown?

I would like the ability to include external .mmd file inside markdown file, but can't find any documentation on including external files.

I'm using VSCode Markdown with Mermaid extension, it is working properly when the markdown embed mermaid source in a code block, but I want to use external Mermaid file. Something like the example below:

mermaid {% include diagram.mmd %}

Is anyone familiar with such capability?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source