Acceptation criteria: - Refactor the mapping to a tree for robustness and efficiency, and making the mapping closer to the prosemirror structure.