0.0.3 • Published 8 months ago
@emergence-engineering/prosemirror-text-map v0.0.3
prosemirror-text-map
A library for manipulating ProseMirror documents in text format.
Convert a ProseMirror document to text, do the work, then map back positions in the text to the ProseMirror document.
use docToTextWithMapping
to create a mapping object & textPosToDocPos
to map text positions to document positions.