{"library":"prosemirror","title":"prosemirror-py","description":"Python implementation of core ProseMirror modules for collaborative editing. Current version 0.6.1, requires Python >=3.10. Release cadence is irregular, with major upstream syncs every few months.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install prosemirror"],"cli":null},"imports":["from prosemirror.model import Schema","from prosemirror.model import DOMParser","from prosemirror.transform import Transform","from prosemirror.transform import Step","from prosemirror.schema_basic import schema"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from prosemirror.model import Schema, DOMParser\nfrom prosemirror.schema_basic import schema\n\n# Create a document from HTML\ndom_parser = DOMParser.from_schema(schema)\ndoc = dom_parser.parse('<p>Hello, world!</p>')\nprint(doc.to_json())\n# Output: {'type': 'doc', 'content': [{'type': 'paragraph', 'content': [{'type': 'text', 'text': 'Hello, world!'}]}]}","lang":"python","description":"Parse HTML into a ProseMirror document using the basic schema.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}