Versions in this module Expand all Collapse all v0 v0.0.2 Jul 13, 2026 Changes in this version + const Fence + var ErrFrontmatterMissing = errors.New("frontmatter: file must start with a '---' line") + var ErrFrontmatterUnclosed = errors.New("frontmatter: opening '---' has no matching closing '---'") + var ErrNoDestination = fmt.Errorf(...) + var ErrNoReader = errors.New("markdown: no input configured; call InputPath, InputByte or InputEmbed") + var ErrSectionArgs = errors.New("markdown: sectionID and content are required") + func ParseFrontmatter(content string) (map[string]string, error) + type Doc struct + func (d *Doc) Extract(outputFile string) error + func (d *Doc) Frontmatter() (map[string]string, error) + func (d *Doc) InputByte(content []byte) *Doc + func (d *Doc) InputEmbed(path string, readFile ReadFunc) *Doc + func (d *Doc) InputPath(pathFile string, readFile ReadFunc) *Doc + func (d *Doc) SetLog(fn func(...any)) + func (d *Doc) UpdateSection(sectionID, content string, afterLine ...string) error + type ReadFunc func(name string) ([]byte, error) + type WriteFunc func(name string, data []byte) error v0.0.1 Jul 13, 2026 Changes in this version + type Markdown struct + func New() *Markdown