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

Raw handling: Pasting from Google Doc doesn't recognize Markdown formatted code #32917

Open
Tracked by #53305
zdenys opened this issue Jun 23, 2021 · 1 comment
Open
Tracked by #53305
Labels
[Feature] Paste Needs Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.

Comments

@zdenys
Copy link

zdenys commented Jun 23, 2021

Description

Markdown formatting is not recognized when copied from a Google Document and pasted into the Editor. This applies to inline code and multiline code (confirmed from my testing so far), but could be actually all of the Markdown formatting. Possibly related issue: #29833

Step-by-step reproduction instructions

  1. Copy the following text and paste it into the Editor

Inline code like this `code goes here` is not recognized.

```
Code is not recognized
```

  1. The Editor recognizes the code and transforms it accordingly:

Screen Capture on 2021-06-23 at 12-34-14

  1. Copy the same text from step 1. and paste it into a Google Document
  2. Copy the text from Google Document and paste it into the Editor

Expected behaviour

See the same result as in step 2 where the Editor recognizes the inline code and the code and transforms it accordingly.

Actual behaviour

The Editor leaves single quotes as they are and doesn't recognize the inline code or the multiline code

Screenshots or screen recording (optional)

Gutenberg.Google.Doc.Mrkdown.formatting.not.recognized.mov

WordPress information

  • WordPress version: 5.7.2
  • Gutenberg version: 10.8.2
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? Yes

Device information

  • Device: MacBook Pro (16-inch, 2019)
  • Operating system: macOS Big Sur 11.4
  • Browser: Chrome 91
@andrewserong andrewserong added the [Type] Enhancement A suggestion for improvement. label May 10, 2023
@andrewserong
Copy link
Contributor

Just going through and re-testing a few older issues that haven't had comments.

Re-testing this now, it still appears that this issue is at play. If I copy and paste the raw version of the text markup from a text editor into the editor then it works, however it doesn't when copy / pasting from Google Docs.

@annezazu annezazu changed the title Pasting from Google Document doesn't recognize Markdown formatted code Raw handling: Pasting from Google Doc doesn't recognize Markdown formatted code Aug 3, 2023
@annezazu annezazu added the Needs Dev Ready for, and needs developer efforts label Aug 3, 2023
@annezazu annezazu moved this to Needs Dev / Todo in WordPress 6.4 Editor Tasks Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Paste Needs Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

4 participants