
Product
Go Support Is Now Generally Available
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
@emergence-engineering/prosemirror-text-map
Advanced tools

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.
This lib is mostly helpful for situations where you use other libraries whose working on texts only (like diffing, parsing, etc.) and you need to map back the results to the ProseMirror document (like adding marks based on text change).
use docToTextWithMapping
to create a mapping object & textPosToDocPos
to map text positions to document positions.
You can use an additional mapping option which could help you to serialise a node to a different format, this could be helpful for example if you want to add images to the diff algo, to detect image (source or alt) changes too.
0.1.4
FAQs

The npm package @emergence-engineering/prosemirror-text-map receives a total of 183 weekly downloads. As such, @emergence-engineering/prosemirror-text-map popularity was classified as not popular.
We found that @emergence-engineering/prosemirror-text-map demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
Security News
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.