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: whitelist all standard text decorators in block-tools #4526

Merged

Conversation

sjelfull
Copy link
Member

@sjelfull sjelfull commented May 24, 2023

Description

This updates the whitelist of block-tools to allow highly requested decorators like sup/sub, as well as any other similar HTML elements that will "just work": mark, ins, small (we already had del in there).

It also updates the README to be more specific that we only will convert a subset of HTML elements, and adds a link to the internal whitelist.

What to review

  • Review that the docs update makes sense to you and makes it clearer what tags we whitelist
  • Review the list of whitelisted decorators: Any objects to the additions?

Notes for release

  • Added support for <sup>, <sub>, <ins> and <mark> in @sanity/block-tools

@vercel
Copy link

vercel bot commented May 24, 2023

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

Name Status Preview Comments Updated (UTC)
performance-studio ✅ Ready (Inspect) Visit Preview May 25, 2023 9:54am
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 25, 2023 9:54am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) May 25, 2023 9:54am

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.

LGTM! Thank you for this @sjelfull!

Copy link
Contributor

@robinpyon robinpyon left a comment

Choose a reason for hiding this comment

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

Thank you @sjelfull!

@sjelfull sjelfull added this pull request to the merge queue May 25, 2023
Merged via the queue into next with commit 47be700 May 25, 2023
17 checks passed
@sjelfull sjelfull deleted the bug/sc-31449/whitelist-all-known-decorators-to-block-tools branch May 25, 2023 20:31
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

3 participants