<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto">I an a fairly new user so I apologize if the answers to this question are obvious, but I searched this mailing list and the issue tracker and could find only one somewhat related thread that didn’t help me.</p>
<p dir="auto"><strong>TL;DR</strong> I need help getting Mermaid syntax and finding out how some of the bundles should be used. BTW I seem to be using a pre-release somehow, Build 5937, so maybe that is an issue?</p>
<h3>Mermaid integration</h3>
<p dir="auto">The TeXMath bundle works really well:</p>
<math display="block"><mrow style="background-color: #F0F8FF; border-radius: 5px 5px 5px 5px; padding: 10px;"><semantics><mrow><mo>∫</mo><mi>x</mi><mspace width="thinmathspace" /><mtext>d</mtext><mi>x</mi><mo>=</mo><mfrac><mn>1</mn><mn>2</mn></mfrac><msup><mi>x</mi> <mn>2</mn></msup><mo>+</mo><mi>C</mi></mrow><annotation encoding="application/x-tex">\int x\, \text{d}x = \frac{1}{2} x^2 + C</annotation></semantics></mrow></math>
<p dir="auto">But when I try Mermaid like this,</p>
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; background-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; max-width: 90vw;"><code style="margin: 0 0; border-radius: 3px; background-color: #F7F7F7; padding: 0px;">~~~mermaid
graph LR
A —> B
B —> C
~~~
</code></pre>
<p dir="auto">I get an orange message above the header that says</p>
<pre style="margin-left: 15px; margin-right: 15px; padding: 5px; background-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; max-width: 90vw;"><code style="margin: 0 0; border-radius: 3px; background-color: #F7F7F7; padding: 0px;">Bundle command failed (event: generate_diagram)
Explanation Unable to reach output
format type (discard !=html)
</code></pre>
<p dir="auto">I have mermaid-cli installed on my Mac, and I can generate Mermaid graphics from the command line using exactly that same syntax, so I’m not sure what is going wrong.</p>
<h3>Documentation or How-To’s for bundles</h3>
<p dir="auto">For example, I use Fantastical and so I checked the Fantastical item under Settings:Bundles. But I’m not exactly sure what this enables me to do. If I select an email and then run the Fantastical:Create Event command under the Commands menu, it definitely creates a new event in Fantastical, and the event has the title of the message subject, and a date/time of when the message was received. That makes me wonder what use case I could have for that. I can go to the GitHub page for the bundle but the documentation is pretty sparse.</p>
<p dir="auto">—Jeff</p>
</div>
</div>
</body>
</html>