Skip to content

Diagram links don't respect the target attribute #78

Description

@alanraison

Firstly, I really appreciate this plugin!

However, we have some mermaid diagrams which should contain links, and the plugin doesn't currently seem to respect the target parameter of links.

I have a diagram similar to this:

flowchart TB

  A-->B-->C
  click A "https://atlassian.com" "Link to Atlassian" _blank
  click B "https://atlassian.com" _blank
  click C href "https://atlassian.com" "Link to Atlassian" _blank

This is consistent with the examples in the Mermaid documentation.

When clicking on the links, the diagram first opens in an overlay, but then if clicked on the overlay then that tries to load the page in the same iframe, and also changes the embedded image on the confluence page.

Ideally, clicked links would open directly from the page, but I understand that this might be confusing for the user, but in either case, the links should be opened in a _blank target. I also tried _top as the link target, with the same results.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions