Skip to content

CodeBlock are not rendered in snapshot compare mode #189

@SevrainChea

Description

@SevrainChea

Please save me some time and use the following template. In 90% of all issues I can't reproduce the problem because I don't know what exactly you are doing, in which environment, or which y-* version is responsible. Just use the following template even if you think the problem is obvious.

Checklist

Describe the bug
I have an issue with displaying CodeBlock using the demos projects.
https://demos.yjs.dev/prosemirror-versions/prosemirror-versions.html

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://demos.yjs.dev/prosemirror-versions/prosemirror-versions.html
  2. Create a code block
  3. Type text
  4. Save snapshot
  5. Select the saved snapshot

Expected behavior
Seing my text in a code block as changes

Screenshots

Screen.Recording.2025-05-26.at.14.09.37.mov

Environment Information

  • Browser / Node.js [e.g. Chrome, Firefox, Node.js]
  • Yjs version and the versions of the y-* modules you are using [e.g. yjs v13.0.1, y-webrtc v1.2.1]. Use npm ls yjs to find out the exact version you are using.

Additional context
I am using the demo app as a starting point for my company's project. Our goal is to render snapshots comparisons based on internal HTML snapshots that we already have. We are using Tiptap as our editor.

  • I'm a sponsor 💖
  • This issue is a blocker for my project.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions