<div dir="ltr"><div dir="ltr"><br><div>Hello Jeff,</div><div><br></div><div>Thank you for bringing this to my attention that mailmate now supports mermaid diagrams. This is going to be useful.</div><div><br></div><div><a href="https://updates.mailmate-app.com/release_notes_archive/MailMate_r6065.html">https://updates.mailmate-app.com/release_notes_archive/MailMate_r6065.html</a><br></div><div><br></div><div>Searching the release notes for "mermaid", I found that this feature was added in version 5918, with the following in the release notes:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">New: Capable of rendering diagrams using Mermaid. Use the language identifier mermaid (or diagram) in a fenced code block. Since there’s no GUI setting yet, you also need to enable the following hidden preference:<br><font face="monospace">defaults write com.freron.MailMate MmBundleCommandForDiagramGeneration -string "BCA016BB-96DF-4EBB-8DD6-4BE467FCA194"</font></blockquote><div><br></div><div>Even in version 6065 I'm not finding any setting in mailmate to enable mermaid. As soon as I issued the suggested 'defaults' command at a terminal shell prompt, the mermaid feature started working for me.</div><div><br></div><div>Jeff</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Dec 19, 2024 at 10:48 PM Jeff Bullard via mailmate <<a href="mailto:mailmate@lists.freron.com">mailmate@lists.freron.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><u></u>
<div><div style="font-family:sans-serif"><div 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>
<u></u><u></u><u></u><u></u><u></u>∫<u></u><u></u>x<u></u><u></u><u></u>d<u></u><u></u>x<u></u><u></u>=<u></u><u></u><u></u>1<u></u><u></u>2<u></u><u></u><u></u><u></u>x<u></u> <u></u>2<u></u><u></u><u></u>+<u></u><u></u>C<u></u><u></u><u></u>\int x\, \text{d}x = \frac{1}{2} x^2 + C<u></u><u></u><u></u><u></u>
<p dir="auto">But when I try Mermaid like this,</p>
<pre style="margin-left:15px;margin-right:15px;padding:5px;background-color:rgb(247,247,247);border-radius:5px;overflow-x:auto;max-width:90vw"><code style="margin:0px;border-radius:3px;background-color:rgb(247,247,247);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:rgb(247,247,247);border-radius:5px;overflow-x:auto;max-width:90vw"><code style="margin:0px;border-radius:3px;background-color:rgb(247,247,247);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>
</div>
_______________________________________________<br>
mailmate mailing list<br>
Unsubscribe: <a href="https://lists.freron.com/listinfo/mailmate" rel="noreferrer" target="_blank">https://lists.freron.com/listinfo/mailmate</a><br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Jeff Bartig<br><a href="mailto:jeff@bartig.net" target="_blank">jeff@bartig.net</a><br></div></div></div></div>