Mermaid and Markdown in WordPress

James Young · September 6, 2019

I’ve been doing much of my work lately in a local WikiJS and also documentation through Markdown. So unfortunately this means that WordPress has gone by the wayside somewhat.

However, I discovered something very cool. There’s multiple plugins you can use to put in Markdown support into WordPress, and some of them support Mermaid!

This means it’s really easy to do things like inline code blocks,

preformatted code blocks
Col 1 Col 2
Easy Tables

And even charts like;

sequenceDiagram participant Alice participant Bob Alice->>John: Hello John, how are you? loop Healthcheck John->>John: Fight against hypochondria end Note right of John: Rational thoughts <br/>prevail! John-->>Alice: Great! John->>Bob: How about you? Bob-->>John: Jolly good!

Happy times!

Twitter, Facebook