Skip to content

fix(markdown): extra whitespace before and after pasted content #7364 #7440

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hip3r
Copy link
Contributor

@hip3r hip3r commented Mar 27, 2025

Summary

Fixes #7364

parsing html allows also having text outside proper html tags. Which means that parsing pasted html <body>\n<span> keeps \n character, because it's evaluated as text between tags.
Solved by replacing newline characters in this case

Test plan

No new lines after pasting content

Checklist

Please add a x inside each checkbox:

A picture of a cute animal (not mandatory but encouraged)

image

@hip3r hip3r requested a review from a team as a code owner March 27, 2025 11:06
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.

Extra whitespace and line breaks being inserted on paste in Windows.
1 participant