WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.36k stars 4.13k forks source link

Footnotes not recognized in pasted markdown #57152

Open stronenv opened 9 months ago

stronenv commented 9 months ago

Description

When pasting markdown into Gutenberg, markdown footnotes are not converted to Gutenberg footnotes.

Step-by-step reproduction instructions

  1. Copy markdown text with footnotes
  2. Paste into the block editor
  3. Marekdown is recognized and converted to blocks, except for footnotes.

Screenshots, screen recording, code snippet

https://github.com/WordPress/gutenberg/assets/70795294/fd23ebe1-2f52-42db-bad8-1e6a27946799

Environment info

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

github-actions[bot] commented 8 months ago

Hi, This issue has gone 30 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.

zdenys commented 8 months ago

I noticed a very related issue when I copied all blocks from a post containing the Footnotes block into a new post. All content pasted except for the content of the footnotes. Here is a video:

https://github.com/WordPress/gutenberg/assets/39308239/1655b2dd-7ee9-49d7-9f4a-b275f5f42537

I'd say it deserves its own separate issue.

github-actions[bot] commented 7 months ago

Hi, This issue has gone 30 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.

audunmb commented 6 months ago

The same happens when pasting from Microsoft Word.

Footnotes from Word are added as

text with footnote that links to the end of the document [1]

[1] Footnote text added at the end of the document with a linkback to the reference

Expected behaviour would be that footnotes are added with the new Footnotes block.

Not sure if pasting from Word needs a separate issue, or if the solution is the same.