Yoast / YoastSEO.js

Analyze content on a page and give SEO feedback as well as render a snippet preview.
GNU General Public License v3.0
403 stars 171 forks source link

Invalid subheading distribution warning with subheading line break and 196+ word #2161

Open amboutwe opened 5 years ago

amboutwe commented 5 years ago

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?

  1. Create new post with content sample below (code view).
  2. Check Readability Analysis. See warning about subheading.
  3. Remove the word six from the paragraph above 'Section Two'. Warning goes away.
  4. Add the word six back. Warning appears again.
  5. Switch to code view
  6. Remove the line break from 'Section One With Line Break'. Warning goes away.
  7. Add line break back. Warning appears.

Technical info

If relevant, which editor is affected (or editors):

Beta

Extra Info

example text

Occurs with

Djennez commented 5 years ago

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.

amboutwe commented 5 years ago

Please inform the customer of conversation # 486331 when this conversation has been closed.

amboutwe commented 5 years ago

Please inform the customer of conversation # 475493 when this conversation has been closed.

amboutwe commented 5 years ago

Please inform the customer of conversation # 508955 when this conversation has been closed.

amboutwe commented 5 years ago

Please inform the customer of conversation # 518790 when this conversation has been closed.

amboutwe commented 5 years ago

Please inform the customer of conversation # 517510 when this conversation has been closed.

amboutwe commented 5 years ago

Please inform the customer of conversation # 530722 when this conversation has been closed.

priscillamc commented 5 years ago

Customer edited the HTML for the Heading Block as a workaround.

dupenet99 commented 4 years ago

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.

monbauza commented 4 years ago

Please inform the customer of conversation # 580158 when this conversation has been closed.