markdown.obsidian.links

Functions for parsing internal links in Obsidian.md style markdown.

Obsidian uses both Markdown style links and Wikilinks as internal links. Markdown style links are of the form [text_shown](link) whereas Wikilinks are of the form [[link_to_markdown#possible_anchor_to_header|text_shown]]. They have an exclamation mark ! if they are embedded.

Within Obsidian, it is often more convenient to use Wikilinks for Vault-internal links for several reasons:

Nevertheless, Markdown style links have the following functions which Wikilinks lack:

from os import PathLike

from fastcore.test import *
from nbdev.showdoc import show_doc