note

package
v2.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(path string, content []byte) *model.Note

Parse parses a .Rmd file and returns a Note with frontmatter, body, and extracted links Never crashes - always produces diagnostics for errors

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL