Skip to content

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.

2 participants