gregzuro / obsidian-kroki

MIT License
45 stars 27 forks source link

obsidian internal links not working for graphviz #9

Open wagle opened 2 years ago

wagle commented 2 years ago

So far, I've been unable to figure out how to make obsidian internal links work for the graphviz instance.

External links work great!

EXT1 [label=" BASIC ANALYSIS2 " , target="_top", URL="https://google.com"];

but nothing so far for internal-links:

OUT2 [label=" BASIC CATEGORY THEORY ", URL="cooperation", class="internal-link"];

that internal-link DOES work for the obsidian builtin mermaid (in mermaid).

Am I not doing it right? How should I do it?

PS bonus points for getting internal-link absolute and/or relative paths to work. I'm trying to port a wiki to obsidian.

PPS. This is awesome. How big a coffee do you want?

wagle commented 2 years ago

This might help:
https://github.com/joethei/obsidian-plantuml/blob/master/src/functions.ts#L30-L50