Documentation
¶
Overview ¶
Package parser provides Markdown parsing, slugification, and text chunking for notebrain-cli.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractTags ¶
ExtractTags finds #tags in the text.
func Slugify ¶
Slugify converts a note name/filename to a URL-safe slug. It lowercases, trims .md, replaces spaces with hyphens, and removes non-alphanumeric characters except hyphens.
func StripFrontmatter ¶
StripFrontmatter removes YAML frontmatter (between --- delimiters) from the start of content.
func TitleFromPath ¶
TitleFromPath derives a fallback title from the relative file path.
Types ¶
type Link ¶
Link represents an extracted Obsidian wikilink.
func ExtractLinks ¶
ExtractLinks finds all Obsidian wikilinks [[Target|Display Text]] in the text. It deduplicates links to the same target to prevent graph edge conflicts.