Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSlug ¶ added in v0.8.0
Types ¶
type Document ¶
type Document struct {
Path string
Content []byte
AST ast.Node
Root *Section // Root section containing the entire document tree
FrontMatter *FrontMatter // Optional front matter at document start
}
Document represents a parsed Markdown document with hierarchical structure
func (*Document) GetSections ¶
GetSections returns all sections in document order
type FrontMatter ¶
type FrontMatter struct {
Format string // "yaml" or "toml"
Content string
Data map[string]any
Links []*Link
}
FrontMatter represents document front matter
type LineLocatable ¶ added in v0.4.0
type LineLocatable interface {
GetLine() int
}
LineLocatable is implemented by elements that have a line position
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser handles Markdown parsing
type Section ¶
type Section struct {
Children []*Section // Nested subsections
Parent *Section // Parent section (nil for root)
Content string
StartLine int
EndLine int
Heading *Heading
CodeBlocks []*CodeBlock
Tables []*Table
Links []*Link
Images []*Image
Lists []*List
}
Section represents a section of content under a heading
Click to show internal directories.
Click to hide internal directories.