[Bug] WebFetch HTML-to-markdown conversion misreporting heading levels
Bug Description
Been working on tidying up some basic html pages. Claude Code was reporting tags and hierarchy errors. For example - Claude reported tags should be H3 not H2. But source code was right. After showing Claude the source - the HTML is correct <h3 class="wp-block-heading"> The problem is WebFetch, not WordPress. The tool's HTML-to-markdown conversion is collapsing or misreporting heading levels when it summarises the page, and the AI model interpreting it is making them all look like H2s.
That means my heading hierarchy audit this session has been unreliable. The pages you built are likely structured correctly — I was reading bad data and critiquing work that wasn't broken.
Environment Info
- Platform: win32
- Terminal: cursor
- Version: 2.1.123
- Feedback ID: 592dab46-2208-440b-9e1f-efde455ba7e0
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗