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 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 TitleFromPath ¶
TitleFromPath derives a fallback title from the relative file path.
Types ¶
type ASTChunk ¶
type ASTChunk struct {
NoteSlug string
Index int
Text string // clean prose text for embedding
HeadingPath string // e.g. "Architecture > Data Flow > Ingest"
Level int // depth of the deepest heading in this chunk (1-6)
CodeBlocks int // number of fenced code blocks in this chunk
HasTable bool
HasTask bool
WordCount int
}
ASTChunk is one section of a note, bounded by heading structure.
Click to show internal directories.
Click to hide internal directories.