Skip to content

Diff view within BlockNote editor #1464

Closed

Description

@darshankapashi

Is your feature request related to a problem? Please describe.
I have documentation and I want to update it from time to time. When I create a new version, I want to provide a way for my team to review the changes. So imagine a git diff review view but for BlockNote.

Describe the solution you'd like
As part of the editor, I want to introduce special markers which can be "accepted" or "rejected", similar to git diff review. When selected, it will add/remove that block. Blocks need to be clubbed, i.e. the insertion is grouped with the removal so selecting "accept" on the insertion block should also remove the deletion block.

Describe alternatives you've considered
I tried implementing it via splitting content into individual entries. This may work for paragraph, but doesn't for codeblocks (it doesn't like "styles") and so I can't highlight the background as green or red. Also, its unclear how I'd add the buttons to accept & reject.

Activity

  1. joaoxbarbosa commented on Feb 26, 2025

    @joaoxbarbosa

    This is really cool. I imagine it would also work amazingly with the comments system @YousefED is working on. It would be kind of like the Google Docs comment mode?

  2. darshankapashi commented on Feb 27, 2025

    @darshankapashi
    Author

    Thats interesting. With AI functionality, there's an increasing need to attach some controls to each block. For example "edit with ai" where you can give a refinement prompt or say "shorten" on a paragraph. You could do it through the left side menu but not sure how text input would look. If this can be supported natively/extensibly that would unlock lot of opportunities.

  3. erlend-sh commented on Jun 3, 2025

    @erlend-sh
  4. nperez0111 commented on Jun 3, 2025

    @nperez0111
    Contributor

    This is indeed something that we are working towards thanks to our sponsors. It is a gnarly problem, but hopefully we can have something by the end of the year

  5. spe987-create commented on Jan 10, 2026

    @spe987-create

    @nperez0111 is there an update on this? Would be happy to hear.

    I personally would prefer simple version of diff view just for users to be able to compare versions of their notes on Version History tab. with red&green highlighting for diffs ofcourse. No action.

  6. nperez0111 commented on Jan 12, 2026

    @nperez0111
    Contributor

    There is an early demo of this, but it still early days & the diffing feature will need several things worked out: #2326

  7. trillhause commented on Jan 17, 2026

    @trillhause

    Very excited to check this out. @nperez0111 when can we expect a beta for this?

  8. locked and limited conversation to collaborators on Feb 24, 2026
  9. converted this issue into a discussion #2512 on Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions