<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mermaid on Time Friend</title><link>https://time-friend.com/en/tags/mermaid/</link><description>Recent content in Mermaid on Time Friend</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Wed, 02 Sep 2026 13:30:14 +0400</lastBuildDate><atom:link href="https://time-friend.com/en/tags/mermaid/index.xml" rel="self" type="application/rss+xml"/><item><title>Add Mermaid Diagrams to a Hugo Blog</title><link>https://time-friend.com/en/archive/make-your-hugo-blog-support-mermaid-diagrams/</link><pubDate>Fri, 01 Aug 2025 10:00:00 +0000</pubDate><guid>https://time-friend.com/en/archive/make-your-hugo-blog-support-mermaid-diagrams/</guid><description>&lt;p&gt;A while back I wrote about adding ECharts to this blog with Hugo Shortcodes. But for day-to-day technical writing, what I usually need is flowcharts and sequence diagrams — the &amp;ldquo;text-is-the-picture&amp;rdquo; kind. That&amp;rsquo;s exactly what Mermaid does: describe a diagram in a few lines of text, no canvas dragging, no pasting screenshots.&lt;/p&gt;
&lt;p&gt;And Hugo now has a cleaner approach than Shortcodes — the &lt;strong&gt;code block render hook&lt;/strong&gt;. Since Hugo v0.123 I can override how code blocks render, intercepting ```mermaid fenced blocks and turning them into renderable diagram containers at build time.&lt;/p&gt;</description></item></channel></rss>