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

Deal with HTML paragraphs, without an ending period #2071

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hartman
Copy link

@hartman hartman commented Aug 24, 2023

Q A
Bug fix? yes
New feature? no
Breaking change? no
Deprecations? no
Tests added? yes
Fixed issues #1708
License Apache-2.0

It is pretty common for the markdown plugin to generate description where the first line is wrapped in <p>. There is already an existing line to deal with and remove these <p> explicitely.

This was however not working when the first line didn't end with a . The split caused <p>summary</p>. combinations because we force added a . after the non-matching split. This combination then subsequently did not match the <p> stripping regex at the end.

By force splitting on end of line we can avoid this mistake.

It is pretty common for the markdown plugin to generate description
where the first line is wrapped in <p>. There is already an existing
line to deal with and remove these <p> explicitely.

This was however not working when the first line didn't end with a .
The split caused `<p>summary</p>.` combinations because we force
added a . after the non-matching split. This combination then
subsequently did not match the <p> stripping regex at the end.

By force splitting on end of line we can avoid this mistake.
@catrope
Copy link

catrope commented Dec 7, 2023

@hegemonic This PR has been open for some time, could you (or someone) review it please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants