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

fix(block-tools): ignore blocks inside list items (#3492) #3973

Merged
merged 1 commit into from Dec 16, 2022

Conversation

juice49
Copy link
Contributor

@juice49 juice49 commented Dec 15, 2022

This fix has previously been released in v2. There's some work to add it to v3 in the chore/sc-21163/cherry-pick-changes-for-v3-on-next branch, but it has not yet been merged.


This fixes a bug where p-tags (and other block elements) inside li elements where incorrectly hoisted out of the li element.

With this change blocks are ignored, and block children are added directly to the listItem instead.

This fixes a bug where p-tags (and other block elements) inside li elements
where incorrectly hoisted out of the li element.

With this change blocks are ignored, and block children are added directly to the
listItem instead.
@vercel
Copy link

vercel bot commented Dec 15, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Dec 15, 2022 at 10:43AM (UTC)
1 Ignored Deployment
Name Status Preview Comments Updated
studio-workshop ⬜️ Ignored (Inspect) Dec 15, 2022 at 10:43AM (UTC)

Copy link
Member

@skogsmaskin skogsmaskin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thank you @juice49

@rexxars rexxars merged commit 5e51831 into next Dec 16, 2022
@rexxars rexxars deleted the chore/html-to-blocks-nesting-v3 branch December 16, 2022 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants