Skip to content

Conversation

matthewlipski
Copy link
Collaborator

Summary

This PR fixes an issue where default styles like text and background color were prioritised over custom inline content & styles.

This could be seen in the mentions inline content example, where, copying and pasting a mention would parse it as a background color style instead of a mention.

Closes #2064

Rationale

N/A

Changes

  • Added runsBefore to custom inline content and style implementations.
  • Made custom styles and inline content run before default content, including parse rules.
  • Removed old unused text and background color marks.
  • Made text and background color marks non-consuming, so other parse rules can still run on the same elements.

Impact

This PR should fix any potential issues that come from custom inline content and styles priority.

Testing

TODO?

Screenshots/Video

N/A

Checklist

  • Code follows the project's coding standards.
  • Unit tests covering the new feature have been added.
  • All existing tests pass.
  • The documentation has been updated to reflect the new feature

Additional Notes

Copy link

vercel bot commented Oct 20, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
blocknote Ready Ready Preview Oct 20, 2025 3:29pm
blocknote-website Ready Ready Preview Oct 20, 2025 3:29pm

💡 Enable Vercel Agent with $100 free credit for automated AI reviews

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.

Drag and drop with clear the inline content attribute

2 participants