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

Support custom autoformatting rules #1202

Open
1 task done
danielrearden opened this issue Oct 30, 2024 · 0 comments
Open
1 task done

Support custom autoformatting rules #1202

danielrearden opened this issue Oct 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@danielrearden
Copy link

danielrearden commented Oct 30, 2024

Is your feature request related to a problem? Please describe.
It's common to want to implement certain behavior after a user types a combination of characters. Examples from our own app:

  • ``` - creates a codeblock
  • > - creates a blockquote
  • --- - creates a divider

Describe the solution you'd like
It would be nice if Blocknote provided a way to set these sort of autoformatting rules, at least at the block level. Not all blocks need them, but some would definitely benefit from having this as an option

Describe alternatives you've considered
We've worked around this by listening to changes in the content and then mutating the content accordingly when one of the rules is triggered, but that's not ideal.

Additional context
Add any other context or screenshots about the feature request here.

Bonus

  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖
@danielrearden danielrearden added the enhancement New feature or request label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant