Replies: 2 comments 3 replies
-
Okay, so mermaid diagrams cannot be rendered serverside as per mermaid-js/mermaid#559 and mermaid-js/mermaid#1183 as rendering relies on clientside DOM access. Mathjax does have a Node API so I think you can simply loop through the items in the dom via |
Beta Was this translation helpful? Give feedback.
-
Shared notes are rendered on the server side so that it's easily processable by e.g. search engines. But I'm not sure if this is useful/needed in case of Math/Mermaid. I think I would probably do it first in frontend JavaScript and only if there are significant downsides it can be moved into backend. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was able to add mermaid diagrams to shared notes pretty quickly but it does do the rendering client-side, meaning there is javascript. I did notice a lack of javascript in shared notes and I'm actually pretty glad about that, so does that mean math+mermaid diagrams+others have to be rendered serverside? I think that can be done with JSDom but I also am pretty new to this language.
Beta Was this translation helpful? Give feedback.
All reactions