2026-05-03 21:37:00 +02:00
|
|
|
"""Structured markdown primitives for markitect-tool."""
|
|
|
|
|
|
|
|
|
|
from markitect_tool.core import (
|
|
|
|
|
ContentBlock,
|
|
|
|
|
Document,
|
|
|
|
|
Heading,
|
|
|
|
|
MarkdownParseError,
|
|
|
|
|
Section,
|
|
|
|
|
parse_markdown,
|
|
|
|
|
parse_markdown_file,
|
|
|
|
|
)
|
2026-05-03 22:51:13 +02:00
|
|
|
from markitect_tool.contract import (
|
|
|
|
|
ContractCheckResult,
|
|
|
|
|
ContractValidationResult,
|
|
|
|
|
DocumentContract,
|
|
|
|
|
check_document_contract,
|
|
|
|
|
check_markdown_file,
|
|
|
|
|
collect_metrics,
|
|
|
|
|
load_contract_file,
|
|
|
|
|
validate_contract,
|
|
|
|
|
validate_contract_file,
|
|
|
|
|
)
|
|
|
|
|
from markitect_tool.diagnostics import Diagnostic, SourceLocation
|
2026-05-04 00:12:07 +02:00
|
|
|
from markitect_tool.query import (
|
|
|
|
|
InvalidQueryError,
|
|
|
|
|
QueryMatch,
|
|
|
|
|
extract_document,
|
|
|
|
|
query_document,
|
|
|
|
|
)
|
2026-05-03 22:12:46 +02:00
|
|
|
from markitect_tool.schema import (
|
|
|
|
|
MarkdownSchema,
|
|
|
|
|
SchemaValidationResult,
|
|
|
|
|
ValidationViolation,
|
|
|
|
|
load_schema_file,
|
|
|
|
|
validate_document,
|
|
|
|
|
validate_markdown_file,
|
|
|
|
|
)
|
2026-05-03 21:37:00 +02:00
|
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
|
"ContentBlock",
|
|
|
|
|
"Document",
|
|
|
|
|
"Heading",
|
|
|
|
|
"MarkdownParseError",
|
|
|
|
|
"Section",
|
|
|
|
|
"parse_markdown",
|
|
|
|
|
"parse_markdown_file",
|
2026-05-03 22:12:46 +02:00
|
|
|
"MarkdownSchema",
|
|
|
|
|
"SchemaValidationResult",
|
|
|
|
|
"ValidationViolation",
|
|
|
|
|
"load_schema_file",
|
|
|
|
|
"validate_document",
|
|
|
|
|
"validate_markdown_file",
|
2026-05-03 22:51:13 +02:00
|
|
|
"ContractCheckResult",
|
|
|
|
|
"ContractValidationResult",
|
|
|
|
|
"DocumentContract",
|
|
|
|
|
"check_document_contract",
|
|
|
|
|
"check_markdown_file",
|
|
|
|
|
"collect_metrics",
|
|
|
|
|
"load_contract_file",
|
|
|
|
|
"validate_contract",
|
|
|
|
|
"validate_contract_file",
|
|
|
|
|
"Diagnostic",
|
|
|
|
|
"SourceLocation",
|
2026-05-04 00:12:07 +02:00
|
|
|
"InvalidQueryError",
|
|
|
|
|
"QueryMatch",
|
|
|
|
|
"extract_document",
|
|
|
|
|
"query_document",
|
2026-05-03 21:37:00 +02:00
|
|
|
]
|