Mermaid Diagrams causing "syntax error in text"
Describe the bug
I am seeing a Syntax error in text. mermaid version 11.2.1 when trying to create a simple mermaid diagram.
Steps to reproduce
Create a simple mermaid diagram:
mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
The version of Memos you're using.
v0.23.0
Screenshots or additional context
Unable to replicate in the latest version. Note: your example is missing the ```s at the start and end. See https://www.usememos.com/docs/getting-started/content-syntax#rendering-mermaid-diagrams
e.g. memo text
e.g. diagram
Strange. I am running v0.23.0 in a docker.
Here what I see:
What browser/os are you using?
I was able to replicate with 2 different instances of v.0.23.0. The newer (newer git commit) one working, the older (older git commit) one not working. Can you try pull the latest docker image with the latest tag.
I am seeing the same problem with Edge, Safari, Chrome and Chromium.
I am using the latest version of Memos from here: https://registry.hub.docker.com/r/neosmemo/memos/
Should I use a different registry?
I think something is happening during the build process. Local development works without any issues but when the website is run via docker the browser shows the following error when a mermaid note is added
Fixed with https://github.com/usememos/memos/commit/57c00734e2a873e56d47b5f16589281c4433c2cf
The main reason for this issue is that files generated with a leading underscore(_) during the frontend build are ignored by Go's embed functionality by default. This causes a 404 error, redirecting to index.html.
Seeing this in 11.4.1