Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Better support for click in Mermaid diagrams

Mat Schaffer
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 15, 2023

If I add this to a mermaid graph

 

graph

A[Open Google]
click A "https://google.com" "link test (open in same tab)"

 

Clicking A opens inside the mermaid diagram frame. 

(before click)

Screen Shot 2023-02-15 at 10.00.28 PM.png

(after click, note error is from google refusing to load in an iframe)

Screen Shot 2023-02-15 at 10.00.01 PM.png

I'd rather it open at the top level (_top), or possibly (_blank) in a new tab.

 

 

https://github.com/mermaid-js/mermaid/pull/1585 adds the option to specify a link target.

 

If you can't add that please at least make _top the default to avoid a very odd picture-in-picture situation with the current "click" behavior.

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events