YoastSEO.js
YoastSEO.js copied to clipboard
Invalid subheading distribution warning with subheading line break and 196+ word
What did you expect to happen?
No warning
What happened instead?
Warning appeared
Subheading distribution: 1 section of your text is longer than 300 words and is not separated by any subheadings. Add subheadings to improve readability.
How can we reproduce this behavior?
- Create new post with content sample below (code view).
- Check Readability Analysis. See warning about subheading.
- Remove the word six from the paragraph above 'Section Two'. Warning goes away.
- Add the word six back. Warning appears again.
- Switch to code view
- Remove the line break from 'Section One With Line Break'. Warning goes away.
- Add line break back. Warning appears.
Technical info
- Platform: WordPress
- Platform version: 5.0.3
- Yoast SEO version: 9.6.x free or premium (also happens with 9.5)
If relevant, which editor is affected (or editors):
- [x] Gutenberg
- [x] Classic Editor plugin
Beta
- [x] Recalibration beta activated
Extra Info
Occurs with
- default block editor
- classic editor plugin active
- recalibration beta active
- recalibration beta inactive
Issue confirmed, though I doubt that this will see much troubles. To get that line break to happen you would have to be working with HTML in the first place and there would have to be a EOL character within a headings tag.
Please inform the customer of conversation # 486331 when this conversation has been closed.
Please inform the customer of conversation # 475493 when this conversation has been closed.
Please inform the customer of conversation # 508955 when this conversation has been closed.
Please inform the customer of conversation # 518790 when this conversation has been closed.
Please inform the customer of conversation # 517510 when this conversation has been closed.
Please inform the customer of conversation # 530722 when this conversation has been closed.
Customer edited the HTML for the Heading Block as a workaround.
It was happening today to my writers when they were copy and pasting their text from their editor into WordPress. We run in the same issue we had to remove a carriage return using WP Code editor.
Please inform the customer of conversation # 580158 when this conversation has been closed.