fsnotes icon indicating copy to clipboard operation
fsnotes copied to clipboard

Yaml in mermaid triggers error

Open mac2net opened this issue 6 months ago • 0 comments

Description

If you add any Frontmatter YAML in front ot a Mermaid object it triggers an error. [Mermaid syntax reference](https://mermaid.js.org/intro/syntax-reference.html). For example this:

---
title: Frontmatter Example
config:
  theme: forest
---

Also, the App was using an older version of Mermaid. I figured out how to replace it. My suggestion is to add a setting to choose whether to use the App’s version or load it from the CDN.

The Mermaid CDN config page is here: [mermaid CDN by jsDelivr - A CDN for npm and GitHub](https://www.jsdelivr.com/package/npm/mermaid)

Cheers Mike

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

No response

FSNotes version

Version 6.10.2 (660)

macOS/iOS version

15.5

Additional context

No response

mac2net avatar Jul 14 '25 14:07 mac2net