Skip to content

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

Open
hip3r wants to merge 4 commits intodecaporg:mainfrom
poslovnimediji:7364-markdown-widget-paste-bugfix
Open

fix(markdown): extra whitespace before and after pasted content #7364#7440
hip3r wants to merge 4 commits intodecaporg:mainfrom
poslovnimediji:7364-markdown-widget-paste-bugfix

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.

2 participants