A real test of the new Mermaid support in this blog's MDX pipeline. Flowcharts, sequence diagrams, class diagrams, state machines, and more are now rendered interactively with zoom, pan, and fullscreen controls.

This post demonstrates the new Mermaid diagram rendering. Any fenced code block with the mermaid language is now rendered as an interactive diagram instead of highlighted code.
Every diagram ships with the same controls as GitHub's markdown renderer:
+ / -)0)Esc to close)A basic flowchart with a decision node:
A typical API request flow:
A small inheritance hierarchy:
A service lifecycle:
Branching and merging:
A simple project overview:
A mermaid block above does not affect the normal highlighting pipeline:
const double = (x) => x * 2
console.log(double(21))