# Mermaid Nixie An Obsidian plugin that sets how Mermaid diagrams are laid out across your vault: the ELK layout engine with right-angle edges, plus spacing settings.  ## Features - **Layout engine:** ELK (right angles, fewest bends) or Dagre (Mermaid's default). - **Edge corners:** rounded, sharp, step, or one of the smooth curves (for diagrams that use Dagre). - **Node spacing** and **layer spacing** sliders, which also apply to ELK (Mermaid's own ELK integration ignores them). - **ELK node placement:** centred by default (`NETWORK_SIMPLEX`), so parents sit over their children. - **Merge parallel edges** toggle. - **Fast to start:** nothing is loaded when Obsidian starts. Mermaid and ELK load the first time a diagram is shown, or in the background a couple of seconds after startup if **Preload after startup** is on (the default). - **Off the main thread:** ELK runs in a Web Worker, so laying out a diagram doesn't freeze the editor. If a worker can't be used, ELK runs on the main thread instead. - A command to re-render diagrams in open notes.  These settings are only defaults. A single diagram can still override them on its first line: ``` %%{init: {"layout": "dagre"}}%% ``` It works on mobile too. Before and after: