-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Convert to blocks adds unordered and ordered list #5172
Comments
I tested this by copying the source of the http://nosolosoftware.com/essays/gestion-de-proyectos-de-software-libre/ post (gist) and pasted it into the Gutenberg editor and found the following: After pressing cmd+v to paste, I saw the following warning in Firefox:
Leading space caused the first block to be code instead of paragraph: Lists that appeared to be bullets became numbered—this may make sense given that the unordered list was nested inside an ordered list (but it's worth noting that the browser appears to parse the HTML differently). A list with several nested ordered lists became a mix of numbered and bulleted. Successive lists with one item each only retain the first list item. Seen at http://alittletestblog.com/wp-admin/post.php?post=13869&action=edit running WordPress 4.9.6 and Gutenberg 3.1.1 using Firefox 61.0 on macOS 10.13.5. |
Moved to #7702. |
Closing this issue because the source HTML from the original issue is not valid (as mentioned) and because the original issue says "feel free to close." 🙂 Sample HTML from the post:
Note: Element ol not allowed as child of element ol in this context |
After converting a really long post (here's the source in case you want to replicate), some of the lists included both UL and OL tags.
Before
After
FWIW, the majority worked flawlessly, it's only a couple that didn't work. The source contains really bad formatted HTML originally, so it's a wonder that Gutenberg can work with this at all. I'm just leaving it here in case it's useful as an extreme real-world use case for parsing.
Feel free to close it.
The text was updated successfully, but these errors were encountered: