-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
List block: pasting a single (Markdown) item from a list converts item to a paragraph #33312
Open
Tracked by
#53305
Labels
[Block] List
Affects the List Block
[Feature] Paste
Needs Dev
Ready for, and needs developer efforts
[Type] Bug
An existing feature does not function as intended
Comments
I can reproduce this too. |
kevin940726
added
[Block] Paragraph
Affects the Paragraph Block
[Type] Bug
An existing feature does not function as intended
labels
Jul 20, 2021
Is there any update or progress on this? Will there be any pull request / bug-fix to this? |
I can replicate this with 6.3 RC1. |
annezazu
changed the title
Gutenberg 11 ignores line numbers, if single line is pasted
List block: pasting a single item from a list converts item to a paragraph
Jul 19, 2023
annezazu
added
the
[Feature] List View
Menu item in the top toolbar to select blocks from a list of links.
label
Jul 19, 2023
jordesign
added
the
[Feature] Writing Flow
Block selection, navigation, splitting, merging, deletion...
label
Aug 18, 2023
I was able to reproduce it too. Looking at the browser console, the HTML seems to be parsed correctly as a list, but for some reason, it is converted to a paragraph block only if it is a single line. eb79f3f67d3e7eb7cc1312df6039826a.mp4 |
ellatrix
added
[Block] List
Affects the List Block
and removed
[Feature] Writing Flow
Block selection, navigation, splitting, merging, deletion...
[Feature] List View
Menu item in the top toolbar to select blocks from a list of links.
[Block] Paragraph
Affects the Paragraph Block
labels
Jul 12, 2024
ellatrix
changed the title
List block: pasting a single item from a list converts item to a paragraph
List block: pasting a single (Markdown) item from a list converts item to a paragraph
Jul 12, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Block] List
Affects the List Block
[Feature] Paste
Needs Dev
Ready for, and needs developer efforts
[Type] Bug
An existing feature does not function as intended
Description
When you paste an ordered list from i.e. Notepad, Gutenberg handles this gracefully (and changes Paragraph block into List block automatically) only, if you are pasting a list having more than one item.
If you're pasting just a single line, with any number in the beginning then block remains as Paragraph (maybe by design), but the number is strip-off (certainly a bug).
Step-by-step reproduction instructions
Expected behaviour
Pasted text is exactly the same as copied from source (i.e. with number)
Actual behaviour
Numbering is stripped off.
Screenshots
WordPress information
Device information
The text was updated successfully, but these errors were encountered: