You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
When rendering a MarkDecoration, the editor view always splits the decoration into several elements if the decorated range spans more than 512 characters, even if all those characters are on the same line.
For example, in this sandbox I expect to have just one decoration around the entire (very long) line. But my element is split into several elements, as you can see by the presence of the red border line inside the text of the line.
Describe the issue
When rendering a
MarkDecoration, the editor view always splits the decoration into several elements if the decorated range spans more than 512 characters, even if all those characters are on the same line.For example, in this sandbox I expect to have just one decoration around the entire (very long) line. But my element is split into several elements, as you can see by the presence of the red border line inside the text of the line.
Browser and platform
Chrome 140 on MacOS Sequoia 15.6.1
Reproduction link
https://codesandbox.io/p/devbox/beautiful-sound-forked-lc8prr?workspaceId=ws_DetuLAcjQzqJD8grNFUmK7