Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First paragraph is sometimes not properly detected #81

Closed
Sebobo opened this issue Oct 20, 2022 · 0 comments
Closed

First paragraph is sometimes not properly detected #81

Sebobo opened this issue Oct 20, 2022 · 0 comments
Assignees
Labels

Comments

@Sebobo
Copy link
Collaborator

Sebobo commented Oct 20, 2022

This happens due to the Yoast Paper at some point adding empty <p> tags to some whitespaces and/or line endings.
Then the regular expression for the first paragraph cannot find the proper element anymore.

paper.getText() then returns markup like this:

    \n<p></p></header>\n<p>
<main class='site__content'></main></p>\n

Even though the input markup doesn't contain those tags.

@Sebobo Sebobo added the bug label Oct 20, 2022
@Sebobo Sebobo self-assigned this Oct 20, 2022
@Sebobo Sebobo closed this as completed in 51d45f5 Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant