I’ve got a problem which can be reformulated/shown with the linting example: https://prosemirror.net/examples/lint/. Here, we have a regexp which tries to look for problematic word in a text node, and if one of the word exists they mark it as a problem.
If we make parts of the problematic word bold, we’ll no longer be able to mark it as problematic as the word is split into multiple nodes now.
Any pointers appreciated with this! One solution I thought of was to create a temporary document without the “disrupting” nodes/marks, and then do the regexp on the resulting nodes, but it doesn’t seem completely trivial to me how to do that either.