Skip to content

Conversation

@robi26
Copy link
Contributor

@robi26 robi26 commented Apr 8, 2025

When updating a page containing html tags with attributes the html was unnecessary wrapped with p tags.
E.g. <p style="text-align:justify;">...</p> was wrapped in p tags again what lead to blank lines.

This PR uses a regex to check a valid html tag is present and prevents the wrapping with p tags.

@jansenbe
Copy link
Contributor

Nice improvement @robi26 , thanks for your contribution!

@jansenbe jansenbe self-assigned this Apr 15, 2025
@jansenbe jansenbe added the area: pages API 📄 Working with modern pages label Apr 15, 2025
jansenbe pushed a commit that referenced this pull request Apr 15, 2025
@jansenbe jansenbe merged commit c41da33 into pnp:dev Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: pages API 📄 Working with modern pages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants