This package provides Python implementations of the following ProseMirror packages:
prosemirror-model
prosemirror-transform
prosemirror-test-builder
prosemirror-schema-basic
prosemirror-schema-list
The original implementation has been followed as closely as possible during translation to simplify keeping this package up-to-date with any upstream changes.
ProseMirror provides a powerful toolkit for building rich-text editors, but it's JavaScript-only. Until now, the only option for manipulating and working with ProseMirror documents from Python was to embed a JS runtime. With this translation, you can now define schemas, parse documents, and apply transforms directly via a native Python API.
The full ProseMirror test suite has been translated and passes. This project only supports Python 3. There are no type annotations at the moment, although the original has annotations available in doc comments.