Description
When using Slate and Slate-react along with Katex library —to render math within blocks—, the whole editor breaks when cursor reachs the rendered formula, throwing an error and breaking the whole editor: Cannot resolve a DOM point from Slate point: {"path":[0,1],"offset":1}
Description When using Slate and Slate-react along with Katex library —to render math within blocks—, the whole editor breaks when cursor reachs the rendered formula, throwing an error and breaking the whole editor:
Cannot resolve a DOM point from Slate point: {"path":[0,1],"offset":1}
Recording https://user-images.githubusercontent.com/55709791/155305908-16de0603-3f56-43b6-a9ca-9985e4e447b6.mov
Sandbox https://codesandbox.io/s/slate-reproductions-forked-xg95mz
Steps To reproduce the behavior:
Expectation Editor should not fail, or when failing log an error without throwing and crashing whole editor
Environment