5

I want to use my flowchart as a table of contents that also represents the progression of parallel events vaguely in chronological order and their relation to one another.

I know to create these charts using markdown. By adding the "click" line for the "B" node i can see my cursor change when hovering over the node as if it were a link but any attempt to select it doesn't work.


graph LR;
    A-->B;
    click B "http://www.github.com"

Is this a limitation of Gitlab itself?

DED
  • 175
  • 10

1 Answers1

2

Update:

This is now supported since GitLab 12.1.

The given example works in GitLab Wiki pages.

graph LR;
    A-->B;
    click B "http://www.github.com"

Thanks, KargWare for pointing this out in the comments.


Yes, this is a limitation of GitLab. There is an open issue requesting the feature:
https://gitlab.com/gitlab-org/gitlab-ce/issues/50459

Hopefully, it will be implemented eventually.

Thomas Kainrad
  • 1,584
  • 13
  • 19
  • I read the gitlab issue. It should be fixed, but for me it is still not working. Is there an special snytax needed? I used ```mermaid xyz ``` (wrapped by three ticks)with no semi-colons at the line end – KargWare Nov 26 '20 at 06:45
  • I found out that the `click` event-handlers must be at the end, not at the beginning of the mermaid block! – KargWare Nov 26 '20 at 06:48
  • Also I saw that only `click ID URL` is supported, not the full syntax `click ID URL altertext target` – KargWare Nov 26 '20 at 06:56
  • How to link to another local file instead of URL? – Bagusflyer Dec 28 '20 at 08:32