diff --git "a/tiddlers/\345\246\202\344\275\225\350\256\251mermaid\345\233\276\350\260\261\347\232\204\350\212\202\347\202\271\345\217\257\344\273\245\350\267\263\350\275\254\357\274\237.tid" "b/tiddlers/\345\246\202\344\275\225\350\256\251mermaid\345\233\276\350\260\261\347\232\204\350\212\202\347\202\271\345\217\257\344\273\245\350\267\263\350\275\254\357\274\237.tid" new file mode 100644 index 00000000..de214b56 --- /dev/null +++ "b/tiddlers/\345\246\202\344\275\225\350\256\251mermaid\345\233\276\350\260\261\347\232\204\350\212\202\347\202\271\345\217\257\344\273\245\350\267\263\350\275\254\357\274\237.tid" @@ -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=<>/> +\end + +<$eventcatcher selector=".node" $click=<>> + +<$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" +"""/> + +``` + +需要安装mermaid插件。 \ No newline at end of file