#11736·Trilium

Issue with previews of child notes in 0.106.0

Author: fabienrutzCreated Sep 27, 2026Updated Sep 28, 2026

Description

Bug: Mermaid diagrams in child notes are sometimes rendered incorrectly

Description

When a parent note contains many child notes containing Mermaid diagrams, some Mermaid diagrams—especially larger/complex diagrams—do not preview correctly. It often displays a blank preview.

In some cases, only a small/focused section of the diagram is displayed instead of the complete diagram.

This worked correctly in TriliumNext 0.105.0.

Steps to reproduce

  1. Create a parent note.
  2. Add many child notes under the parent.
  3. Add Mermaid diagrams to the child notes, including some larger/complex diagrams.
  4. Open the child notes and preview the Mermaid diagrams.
  5. Observe that some diagrams are not rendered completely.

Expected behavior

The complete Mermaid diagram should be rendered and displayed correctly regardless of how many child notes exist under the parent note or how large/complex the diagram is.

Actual behavior

Some Mermaid diagrams are rendered incorrectly. In particular, larger diagrams may show only a small focused/zoomed section rather than the complete diagram.

Regression

This behavior was not present in TriliumNext 0.105.0. Mermaid diagrams that now fail to preview correctly worked as expected in that version.

Additional information

The issue appears to be more noticeable when:

  • The parent note contains many child notes.
  • The Mermaid diagram is large or complex.
  • Multiple child notes co

TriliumNext Version

0.106.0

What operating system are you using?

Windows

What is your setup?

Local + server sync

Operating System Version

Windows 11

Error logs

No response