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

Losing spaces when pasting rich text into markdown field #3727

Closed
jeremyzilar opened this issue May 9, 2020 · 4 comments · Fixed by #3864
Closed

Losing spaces when pasting rich text into markdown field #3727

jeremyzilar opened this issue May 9, 2020 · 4 comments · Fixed by #3864
Labels

Comments

@jeremyzilar
Copy link
Contributor

When copying and pasting rich text with formatting into the 'markdown' widget, spaces get lost around formatted words.

Example:
If we copy rich text from a page

Join us at 1pm ET for lunch a live conversation over ZOOM with special guest Paul Soulellis and host Megan N. Liberty to discuss creative life in the context of our new social reality. This gathering will conclude with a poetry reading by a member of our staff.

and paste it into a 'markdown' widget in NetlifyCMS (in the rich text view), we get:

Join us at 1pm ETfor lunch a live conversation over ZOOM with special guestPaul Soulellisand hostMegan N. Libertyto discuss creative life in the context of our new social reality. This gathering will conclude with a poetry reading by a member of our staff.

👆Note the missing spaces in special guest**Paul Soulellis**and host**Megan N. Liberty**to discuss.

image

Same things happening when copying and pasting from any rich text web page. Spaces seem to go missing on either side of links, italicized text, bold text.

@freshyill
Copy link

I experience this as well.

@erezrokah erezrokah added the type: bug code to address defects in shipped code label May 11, 2020
@jamgit
Copy link

jamgit commented May 19, 2020

This is a consistent, and time consuming, issue when pasting from Google Doc or other page or document. As others say, after links, em-dash, bold and italic text, etc.

@erezrokah
Copy link
Contributor

Linking rehypejs/rehype-minify#19 for context

@erezrokah
Copy link
Contributor

FYI, a fix was released but it requires an additional fix to work rehypejs/rehype-minify#19 (comment)

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

Successfully merging a pull request may close this issue.

4 participants