Module markdown

Module markdown 

Source
Expand description

Markdown lint + extraction for pack prompts

Structsยง

ExtractedBlocks
Extracted metadata from markdown fenced blocks.
FencedBlock
MarkdownDoc
UserSection

Enumsยง

FenceKind
Supported fence block types (single source of truth)

Constantsยง

MAX_FENCE_BLOCK_BYTES ๐Ÿ”’

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 FenceKind and 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.