Remove dependency prosemirror-markdown
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
We use prosemirror-markdown
library as a base to serialize prosemirror content to markdown. However over various milestones we have made several improvements on top of it, and we barely use 10% of the library now. In fact there is only one function in the library that we borrow and build upon.
Proposal
It will be better if we can just copy over that one function to our codebase and remove the dependency completely.
This will also allow us to be more flexible with preserving certain marks like code
and inline-math
.
Next steps
After we remove this dependency, we should
-
rework the preserveUnchanged
andpreserveUnchangedMark
logic and build it into the serializer state. -
move the change detection logic (which compares pristine document with chnaged document) into the serializer state. -
move the reference link restoration logic also to the serializer state.
Edited by 🤖 GitLab Bot 🤖