md

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package md parses frontmatter for agent configs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Body

func Body(content string) string

Body returns the document body without frontmatter.

func BuildApplyToFrontmatter

func BuildApplyToFrontmatter(globs []string) string

BuildApplyToFrontmatter builds an applyTo frontmatter block.

func BuildPathsFrontmatter

func BuildPathsFrontmatter(globs []string) string

BuildPathsFrontmatter builds a paths frontmatter block.

func ParseApplyTo

func ParseApplyTo(content string) ([]string, error)

ParseApplyTo extracts glob patterns from frontmatter.

func ParsePaths

func ParsePaths(content string) ([]string, error)

ParsePaths extracts the paths list from frontmatter.

func SplitFrontmatter

func SplitFrontmatter(content string) (string, string, bool)

SplitFrontmatter separates frontmatter from the body.

func StripGeneratedHeader

func StripGeneratedHeader(body string) string

StripGeneratedHeader removes a leading generated header.

Types

This section is empty.

Jump to

Keyboard shortcuts

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