Hi,
We ran into an issue I would like your opinion on.
We use markdown as our storage format and have implemented an annotation feature with Prosemirror.
Say I have a text with annotations (ranges).
The user enter several newlines (hitting enter or, worse, shift+enter). Our annotations update their positions accordingly (they are stored in a separate object).
On save Prosemirror export to Markdown following CommonMark specs : empty newlines are deleted but our annotations have no chance to update their positions at this step in the process.
Then our “annotations” are “de-synchronized” and cannot be re-applied on next page load of the content.
On https://prosemirror.net/demo/markdown.html this behavior is clear between markdown and WYSIWYM mode, but how can we maintain ranges position in this case ?
Do you have an idea ? Are we doing something wrong here ?
Thanks