Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
Parse parses a .Rmd file and returns a Note with frontmatter, body, and extracted links Never crashes - always produces diagnostics for errors
func ResolveLinks ¶ added in v2.6.0
func ResolveLinks(rawLinks []model.RawLink, typeKeyMap map[model.TypeKey]model.NoteID, lastSegmentMap map[string][]model.NoteID, sourceType model.TypeName) ([]model.RawLink, []model.Diagnostic)
ResolveLinks resolves raw links to edges, returning resolved edges and diagnostics. This implements the link resolution rules:
- [[type:key]] -> direct resolution by full key
- [[key]] -> first try exact match on full key, then fall back to last-segment matching
- exact match takes priority to support path-based keys like [projects/web/auth]
- ambiguous if multiple matches found at either phase
- Unknown targets -> diagnostics + unresolved edge rows
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.