Documentation
¶
Overview ¶
Package markdown extracts what the index needs from a note body: tags (#tag, nested #a/b), wikilinks ([[Title]], [[path|alias]], [[x#heading]]), embeds (![[x]]) and links to local notes (text(other.md)).
goldmark finds code blocks, code spans and raw HTML, which are masked out first, so a "#define" in a code block is not a tag. The Obsidian syntax itself is matched with small regular expressions on what is left.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Link ¶
type Link struct {
// Target is the link target without heading or block reference, as
// written: "Title", "folder/Note", "Note.md". For markdown links it is
// the destination resolved against the note's folder.
Target string `json:"target"`
// Heading is the part after "#" (a heading, or "^id" for a block).
Heading string `json:"heading,omitempty"`
// Alias is the display text after "|".
Alias string `json:"alias,omitempty"`
// Embed is true for ![[x]].
Embed bool `json:"embed,omitempty"`
// Wiki is true for [[…]] links, false for [text](dest.md) links.
Wiki bool `json:"wiki"`
}
Link is one outgoing link of a note.