Skip to content

Commit

Permalink
Create 如何让mermaid图谱的节点可以跳转?.tid
Browse files Browse the repository at this point in the history
  • Loading branch information
dongrentianyu committed Sep 2, 2023
1 parent 06b690f commit 61278ce
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tiddlers/如何让mermaid图谱的节点可以跳转?.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
created: 20230902123617020
creator: 马不前
modified: 20230902124100839
modifier: 马不前
tags: 插件技巧类 Mermaid插件
title: 如何让mermaid图谱的节点可以跳转?

参考[[论坛|https://talk.tiddlywiki.org/t/mermaid-tw5-plugin-update-to-mermaid-8-13-2-9-3-0/1117/19]]的用法就可以实现。

```
\define clickactions()
<$action-navigate $to=<<dom-title>>/>
\end

<$eventcatcher selector=".node" $click=<<clickactions>>>

<$mermaid text="""
flowchart LR
A[Links to Tiddler A] --> B[Links to Tiddler B] --> C[No link]
click A noop "Tiddler A"
click B noop "Tiddler B"
"""/>
</$eventcatcher>
```

需要安装mermaid插件。

0 comments on commit 61278ce

Please sign in to comment.