Expand description
Markdown lint + extraction for pack prompts
Structsยง
- Extracted
Blocks - Extracted metadata from markdown fenced blocks.
- Fenced
Block - Markdown
Doc - User
Section
Enumsยง
- Fence
Kind - Supported fence block types (single source of truth)
Constantsยง
Functionsยง
- collect_
tool_ ๐ids - heading_
level ๐ - Determine the Markdown heading level for a single line.
- is_ref ๐
- lint_
issue_ ๐label - parse_
fence_ ๐info - Parse a fence header string into a
FenceKindand an optional header name. - parse_
markdown ๐ - Parse a pack markdown document into a structured MarkdownDoc, validating headings and fenced blocks and extracting constraints, tool references, and RAG configuration.
- parse_
markdown_ files - strip_
ref ๐ - validate_
blocks ๐ - Validates and extracts metadata from the fenced blocks in a user section.