What problem does it solve?
Prevents structurally broken wiki pages from being published by catching malformed tables, escaped internal-link artifacts, unbalanced code or callout fences, heading hierarchy defects, and missing manual TOCs that lead to broken rendering or poor navigation.
Core Features & Use Cases
- Validates table structure and separator rows to detect collapsed or inconsistent rows before publish.
- Detects escaped wiki-link artifacts and reports them as BLOCK findings to avoid broken internal links.
- Ensures balanced fenced code blocks and callout fences and enforces heading hierarchy rules so rendering and navigation remain predictable.
- Enforces TOC requirements for platforms configured with manual TOC behavior, failing closed on missing adapter configuration.
- Use case: run as Stage 5.5 in a bulk wiki publishing pipeline to block pages with structural defects and produce a line-numbered report for editors to fix.
Quick Start
Run the wiki-markdown-structure-gate on a draft page to identify and fix BLOCK findings such as malformed tables, unbalanced fences, or missing manual TOC before publishing.