Validate Structure
AI-generatedSummary
Validate the Markdown or HTML content's heading structure by counting H1, H2, and H3 headings and checking for common structural issues such as missing or multiple H1 headings.
Inputs
- Content (Markdown/HTML) (required) — The Markdown or HTML content string to validate the heading structure of.
Output shape
a single object per input item containing counts of H1, H2, and H3 headings, a boolean 'isValid' indicating if the structure has no issues, and an array 'issues' listing found heading-related problems
If no H1 heading exists, the 'issues' array includes 'Missing H1 heading'; if more than one H1 heading exists, it includes 'Multiple H1 headings found'. The 'isValid' flag is true only when there are no issues. Each item input results in one output item with this structure.
Examples
Example 1: Validate a blog post's content structure for proper heading usage
Set 'Operation' to 'Validate Structure' and provide the post's Markdown or HTML content in the 'Content (Markdown/HTML)' parameter. The node will return heading counts and identify common structural issues to ensure SEO best practices.