Navigating Zettelkasten links in Marked 2
Has anyone found a way to get Marked 2 to navigate wikilinks? E.g. I would like to be able to view a note from my Zettelkasten in Marked, click a link referencing another note, and have Marked open that note.
Howdy, Stranger!
Comments
I haven't implemented this, but I think your best bet is (a) a pre-processor that replaces wiki links with Markdown links, or (b) JavaScript to achieve a similar effect but in the template/output. You can use
thearchive://match/<WIKI LINK HERE>
to simulate clicking a wiki link from outside of the app.Author at Zettelkasten.de • https://christiantietze.de/
Hi there,
I do this using a preprocessor, just as @ctietze suggests.
Try the following ruby script, which strips the wiki link syntax, and adds the Markdown links. I had some help from the Marked developer when figuring this out, so credit goes to Brett Terpstra for this:
Hope it helps!
Just to add, you won’t need the
.txt
here! A relic from a prior version…Amazing! Thanks for the script - It works