markdownnote

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostic

type Diagnostic struct {
	Code    string
	Message string
}

func ParseFrontmatter

func ParseFrontmatter(content []byte) (map[string]string, string, []Diagnostic)

type Document

type Document struct {
	Path         string
	Frontmatter  map[string]string
	Body         string
	Note         domain.Note
	Headings     []Heading
	Links        []Link
	Tasks        []Task
	Properties   []Property
	FencedBlocks []FencedBlock
	Diagnostics  []Diagnostic
}

func ParseFull

func ParseFull(path string, content []byte) (Document, error)

type FencedBlock

type FencedBlock struct {
	Language string
	Info     string
	Body     string
}

type Heading

type Heading struct {
	Level int
	Text  string
}
type Link struct {
	Target string
	Label  string
	Style  string
}

type Property

type Property struct {
	Name  string
	Value string
}

type Task

type Task struct {
	Text string
	Done bool
}

Jump to

Keyboard shortcuts

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