Mermaid

Find a mermaid diagram embedded in a markdown file, write it out to a separate mermaid input file

WazzaMo 2ae31a8 4 files · 1.9 KB Updated

File contents

Find a mermaid diagram embedded in a markdown file, write it out to a separate mermaid input file with the file name image-{basename}-{description}.mmd where "basename" is the base filename from the markdown file and "description" is a short description of the mermaid image. Run script/run-mermaid.sh image-{basename}-{description}.mmd image-{basename}-{description}.png and then replace the mermaid text with a reference to the PNG image of the form:

![{description}](./image-{basename}-{description}.png)

So that the markdown file refers to the rendered image.

WazzaMo/agent-tool-packager/tree/main/example-skill-and-script/mermaid commit 2ae31a8e8b

Frequently asked questions

npx skillmds@latest add wazzamo/mermaid