# Support for mermaid diagram configurations

**URL:** <https://forum.obsidian.md/t/support-for-mermaid-diagram-configurations/112732>\
**Category:** Feature requests\
**Tags:** mermaid\
**Created:** [March 27, 2026, 12:39pm UTC](https://forum.obsidian.md/t/support-for-mermaid-diagram-configurations/112732 "2026-03-27T12:39:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelseelion](https://forum.obsidian.md/user_avatar/forum.obsidian.md/michaelseelion/32/57653_2.png) [@michaelseelion](https://forum.obsidian.md/u/michaelseelion)\
**Post date:** [March 27, 2026, 12:39pm UTC](https://forum.obsidian.md/t/support-for-mermaid-diagram-configurations/112732/1 "2026-03-27T12:39:38Z")

</div>

### Use case or problem

The current mermaid diagram support is very limited. The rendered diagram ignores custom configurations, like the renderer used. I have complex flow diagrams that look very messy in obsidian because the connections are rendered as curved lines. This can be fixed simply by changing the renderer to `elk`, but obsidian doesn’t support this.

### Proposed solution

Include a more full-fledged mermaid diagram app within obsidian, allowing configurations to be passed and interpreted.

### Current workaround (optional)

Currently I just use obsidian to keep the code, but copy and paste it to the mermaid live editor to look at it. It’s a workaround but tedious.

### Same feature request

> [@Mermaid: Support Elk layout system in core Obsidian](https://forum.obsidian.md/t/mermaid-support-elk-layout-system-in-core-obsidian/95700):
>
> Hello, first of all, I’d like to apologize for any mistakes in my writing, as English is not my native language. I’d like to request something that I believe is a common wish among a large part of the community that uses Mermaid diagrams: the ability to use theme and layout configurations, such as Elk. This would be essential to make this native feature even more powerful and to ensure that the visualization in the online editor matches the visualization in Obsidian.

---

<div class="post-metadata">

**Author:** ![StraightBanana07](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/53a042/32.png) [@StraightBanana07](https://forum.obsidian.md/u/StraightBanana07)\
**Post date:** [May 24, 2026, 3:18pm UTC](https://forum.obsidian.md/t/support-for-mermaid-diagram-configurations/112732/2 "2026-05-24T15:18:08Z")

</div>

I support this. The configuration includes theme, look, layout (beyond elk).

Section about Look :

> ### Layout and look
> 
> We’ve restructured how Mermaid renders diagrams, enabling new features like selecting layout and look. **Currently, this is supported for flowcharts and state diagrams** , with plans to extend support to all diagram types.
> 
> ### Selecting Diagram Looks
> 
> Mermaid offers a variety of styles or “looks” for your diagrams, allowing you to tailor the visual appearance to match your specific needs or preferences. Whether you prefer a hand-drawn or classic style, you can easily customize your diagrams.
> 
> **Available Looks:**
> 
> - Hand-Drawn Look: For a more personal, creative touch, the hand-drawn look brings a sketch-like quality to your diagrams. This style is perfect for informal settings or when you want to add a bit of personality to your diagrams.
> - Classic Look: If you prefer the traditional Mermaid style, the classic look maintains the original appearance that many users are familiar with. It’s great for consistency across projects or when you want to keep the familiar aesthetic.
> 
> **How to Select a Look:**
> 
> You can select a look by adding the look parameter in the metadata section of your Mermaid diagram code. Here’s an example:
> 
> ##### Code:
> 
> ```auto
> ---
> config:
> look: handDrawn
> theme: neutral
> ---
> flowchart LR
> A[Start] --> B{Decision}
> B -->|Yes| C[Continue]
> B -->|No| D[Stop]
> 
> ```
> 
> [![](https://mermaid.ink/img/pako:eNpFkEFvgzAMhf9K5DMgKKFADpXWctx22E5b6SGCFKKBjdKgbqP89wWmqje_9_zZlieoqFYgwPf9EivCs25EiYx1RF-CtRLrwsgrLpZtVa8EQzVaI7sSV-Tc0bVqpbHs-W1pejq-W6dOzPd3bD8VqtIXTTgv2X4xbx_qcmOH44HQahzV6ZG80o0VjqfBmeBBY3QNwppRedAr08tFwrQAJazXlCBceb8ISpwdNkj8JOrvpKGxaUGcZXdxahxqaVWhZWPko0VhrcyBRrQgomi7zgAxwTcIHidBmCebiGc8ThMPfpwX8SCKwyTjabRN820-e_C7rgwDvknDPMsckfIsSWLugaq1JfPy_-j13_Mf8uF2Rg?type=png)](https://mermaid.ai/live/edit#pako:eNpFkEFvgzAMhf9K5DMgKKFADpXWctx22E5b6SGCFKKBjdKgbqP89wWmqje_9_zZlieoqFYgwPf9EivCs25EiYx1RF-CtRLrwsgrLpZtVa8EQzVaI7sSV-Tc0bVqpbHs-W1pejq-W6dOzPd3bD8VqtIXTTgv2X4xbx_qcmOH44HQahzV6ZG80o0VjqfBmeBBY3QNwppRedAr08tFwrQAJazXlCBceb8ISpwdNkj8JOrvpKGxaUGcZXdxahxqaVWhZWPko0VhrcyBRrQgomi7zgAxwTcIHidBmCebiGc8ThMPfpwX8SCKwyTjabRN820-e_C7rgwDvknDPMsckfIsSWLugaq1JfPy_-j13_Mf8uF2Rg)

> **[Mermaid](https://mermaid.js.org/intro/syntax-reference.html#selecting-diagram-looks)**
>
> Create diagrams and visualizations using text and code.

Section about layouts:

> # Layouts
> 
> This page lists the available layout algorithms supported in Mermaid diagrams.
> 
> ## Supported Layouts
> 
> - **elk** : [ELK (Eclipse Layout Kernel)](https://www.eclipse.org/elk/)
> - **tidy-tree** : Tidy tree layout for hierarchical diagrams [Tidy Tree Configuration](https://mermaid.js.org/config/tidy-tree.html)
> - **cose-bilkent** : Cose Bilkent layout for force-directed graphs
> - **dagre** : Dagre layout for layered graphs

> **[Mermaid](https://mermaid.js.org/config/layouts.html)**
>
> Create diagrams and visualizations using text and code.

And tidy-tree layout (for mindmaps):

> # Tidy-tree Layout
> 
> The **tidy-tree** layout arranges nodes in a hierarchical, tree-like structure. It is especially useful for diagrams where parent-child relationships are important, such as mindmaps.
> 
> ## Features
> 
> - Organizes nodes in a tidy, non-overlapping tree
> - Ideal for mindmaps and hierarchical data
> - Automatically adjusts spacing for readability
> 
> ## Example Usage
> 
> ##### Code:
> 
> ```auto
> ---
> config:
> look: handDrawn
> theme: forest
> layout: tidy-tree
> ---
> mindmap
> root((mindmap))
> Origins
> Long history
> ::icon(fa fa-book)
> Popularisation
> British popular psychology author Tony Buzan
> Research
> On effectiveness<br/>and features
> On Automatic creation
> Uses
> Creative techniques
> Strategic planning
> Argument mapping
> 
> ```
> 
> [![](https://mermaid.ink/img/pako:eNpdUstu2zAQ_JUFTzZgu7JlxQpRFMjj2CJFH5dCF0ZaSUSlXXVJplUM_3tpOeojPHFnZ4azJI-q5A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2HRkw)

> **[Mermaid](https://mermaid.js.org/config/tidy-tree.html)**
>
> Create diagrams and visualizations using text and code.

This is IMO **much** better for mindmaps than the default engine.

Similar to Elk, the tidy tree layout engine is not included with Mermaid but provided as a package.

> This package provides a bidirectional tidy tree layout engine for Mermaid based on the non-layered-tidy-tree-layout algorithm.

[@mermaid-js/layout-tidy-tree](https://www.npmjs.com/package/@mermaid-js/layout-tidy-tree)

I don’t know what would be the best way way to provide support for this, while maintaining the syntax. But that would improve mermaid diagrams a lot.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [October 22, 2026, 9:47pm UTC](https://forum.obsidian.md/t/support-for-mermaid-diagram-configurations/112732/3 "2026-10-22T21:47:02Z")

</div>

Obsidian [v1.15.x](https://obsidian.md/changelog/2026-10-22-desktop-v1.15.0/) will stop using Mermaid and start using [Pele](https://pele.run/). Same diagram syntax but different rendering engine, smaller and with no dependencies.
