I’m playing around with mermaid diagrams and found that by setting the class to internal-link, I can make my diagrams clickable. Very useful. I can now generate a “map” out of the notes for my planned hiking routes and their start/end points with dataviewjs, I hadn’t expected that to be this easy.
But now I’m a bit stuck.
I want the text displayed for the link to be different from the name of the Obsidian note it links to. Is that at all possible?
I tried the very blunt:
flowchart TD
A["[My Text](My Link)"] --> B
class A internal-link;
(i.e., making the link text of the node descriptor a markdown formatted link)
But that didn’t work, and nothing else did either.
I could live with the mermaid ‘id’ “A” being the link target maybe, since that’s not otherwise shown, but I couldn’t figure that out either.