Markdown Hierarchy Integrity

Hard-gate technical documentation by enforcing professional Markdown structure and identifying sequential heading "Skips".

In technical documentation, "Hierarchy" is the primary navigation engine. If a README skips from an H1 to an H3, the "Table of Contents" breaks and screen readers fail to provide a coherent outline for accessibility. If a documentation page has two H1 titles, it creates "SEO Conflict" and visual confusion. This "Structural Fragmentation" is why many technical docs feel "Unprofessional" or difficult to use. The Markdown Hierarchy Integrity rule is a forensic-grade "Documentation Firewall" that ensures your technical assets are 100% structurally sound.

This rule performs a "Sequential Heading Audit" on every Markdown file. It identifies every heading level (H1-H6) and ensures they follow a "Logical Progression." TaskVerified identifies "Hierarchy Failures"—such as skipping from H2 to H4—and provides immediate feedback: "Heading level skip: H2 followed by H4 at line 45. Documentation requires sequential progression." This ensures that your "Knowledge Base" is always perfectly navigable and professional.

"H1 Singularity Enforcement" is a critical feature for SEO and accessibility. Our validator identifies "Missing H1s" (where a document has no title) or "Multiple H1s" (which confuses search engines). TaskVerified requires that every document starts with a single, clear H1 heading. This acts as a final gate against "Ambiguous Documentation," ensuring that your users and search bots always know the primary topic of the page.

The validator also features "Visual Outline Mapping." It provides a "Structural Summary" of your document's hierarchy: "Outline: H1 > H2 > H3 > H2." This allows you to visualize your "Content Logic" before you publish. It transforms your submission gate into a "Structural Precision Filter" that eliminates the need for manual "Outline Reviews" in high-volume documentation projects.

For technical writers and lead engineers, this rule is an "Authority Multiplier." It provides a specific "Documentation Integrity Report" for every submission: "Markdown Structure: 100% Verified." This documented proof of structural quality allows you to build massive technical libraries with total certainty that they are perfectly accessible and SEO-optimized. It transforms a tedious manual check of "Is the TOC broken?" into a guaranteed technical state: "Structural Compliance: 100%."

Logic is the foundation of knowledge. The Markdown Hierarchy Integrity rule ensures that your "Technical Content" is as organized as it is accurate, protecting your documentation's "Usability" and ensuring 100% professional polish for every page.

Forensic Mechanism

The validator utilize a line-by-line parsing engine to identify Markdown heading markers (#). It builds a "Temporal Heading Stack" and checks for sequential level increments (e.g. H(n) -> H(n+1)). It identifies "Missing H1s" and "Hierarchy Skips" and provides specific "Structural Violation" reports with line-number mapping.

handshakes & Hand-offs

Quality is a binary state.
Verified or Rejected.

Stop managing via opinion. Use the Robot PM to enforce the objective standards your brand requires.

Markdown Hierarchy Integrity | TaskVerified Forensic Rules | TaskVerified