-
I recall seeing somewhere on the site, but can't find it now, that support for Mermaid tooltips was being dropped. I have studied the Mermaid flowchart documentation at https://mermaid-js.github.io/mermaid/#/flowchart and find no mention of Mermaid developers dropping this, so I'm not clear why support is being dropped in Quarto. Second, in Quarto html tags within Mermaid flowchart node labels are no longer working. It works in the Preview from VS Code but when rendering the html the tags show up literally. I used to be able to put something like this in a node label: Any help appreciated. I'm using Quarto 1.3.26. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
@harrelfe You probably saw that on release notes or on commit logs. I'm the author for that. The issue with tooltips in Quarto is that they relied on a hack I put in so that they'd work with multiple diagrams in a single page. That hack stopped working on the latest version of Mermaid. I spent an afternoon trying to fix it, and couldn't get it to work again. The mermaid codebase does not lend itself particularly well to robust extensions (each diagram type is implemented entirely independently of the next), and it has enough churn that maintenance is particularly time consuming. So I simply decided to remove the feature. I apologize that this affects you. I'll schedule some time in the future (this will be at least February, unfortunately) to give it another shot, but I can't promise I'll be able to make it work again. WRT tags within labels. The issue here is that in order for quarto mermaid theming to work, I had to change the rendering mode from mermaid, which I did notice had a side effect of changing how escaping works. Theming of mermaid diagrams was a feature that had a number of requests, so that took priority. Again, I apologize for it affecting your existing uses, I know how frustrating that is. When I come back to this code, I'll see if I can set up an option to explicitly control escaping. |
Beta Was this translation helpful? Give feedback.
@harrelfe You probably saw that on release notes or on commit logs. I'm the author for that. The issue with tooltips in Quarto is that they relied on a hack I put in so that they'd work with multiple diagrams in a single page. That hack stopped working on the latest version of Mermaid.
I spent an afternoon trying to fix it, and couldn't get it to work again. The mermaid codebase does not lend itself particularly well to robust extensions (each diagram type is implemented entirely independently of the next), and it has enough churn that maintenance is particularly time consuming. So I simply decided to remove the feature. I apologize that this affects you. I'll schedule some time in the fu…