mdtype defines named structural contracts across Markdown frontmatter, body content, and explicit context.