Prosemirror-py

Latest version: v0.3.2

Safety actively analyzes 629908 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 18

1.7.0

New features

Mark specs now support a property [`spanning`](https://prosemirror.net/docs/ref/#model.MarkSpec.spanning) which, when set to `false`, prevents the mark's DOM markup from spanning multiple nodes, so that a separate wrapper is created for each adjacent marked node.

1.6.4

Bug fixes

Don't output empty style attributes when a style property with a null value is present in `renderSpec`.

1.6.3

Bug fixes

The DOM parser now drops whitespace after BR nodes when not in whitespace-preserving mode.

1.6.2

Bug fixes

Prevent [`ContentMatch.findWrapping`](https://prosemirror.net/docs/ref/#model.ContentMatch.findWrapping) from returning node types with required attributes.

1.6.1

Bug fixes

Fix a bug where marks were sometimes parsed incorrectly.

1.6.0

Bug fixes

Fix issue where marks would be applied to the wrong node when parsing a slice from DOM.

New features

Adds a new node spec property, [`toDebugString`](https://prosemirror.net/docs/ref/#model.NodeSpec.toDebugString), making it possible to customize your nodes' `toString` behavior.

Page 7 of 18

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.