Prosemirror-py

Latest version: v0.3.2

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

Scan your dependencies

Page 11 of 18

1.2.5

Bug fixes

Rewrite the slice-fitting code used by `replaceStep` to handle a few more corner cases.

1.2.4

Bug fixes

Fix `joinPoint` to return check whether the parent node allows a given join.

1.2.3

Bug fixes

Include CommonJS type declarations in the package to please new TypeScript resolution settings.

1.2.2

Bug fixes

Throw errors, rather than constructing invalid objects, when deserializing from invalid JSON data.

1.2.1

Bug fixes

Content expressions with text nodes in required positions now raise the appropriate error about being unable to generate such nodes.

1.2.0

Bug fixes

[`rangeHasMark`](https://prosemirror.net/docs/ref/#model.Node.rangeHasMark) now always returns false for empty ranges.

The DOM renderer no longer needlessly splits mark nodes when starting a non-rendered mark.

New features

[`DOMSerializer`](https://prosemirror.net/docs/ref/#model.DOMSerializer) now allows [DOM specs](https://prosemirror.net/docs/ref/#model.DOMOutputSpec) for marks to have holes in them, to specify the precise position where their content should be rendered.

The base position parameter to [`Node.nodesBetween`](https://prosemirror.net/docs/ref/#model.Node.nodesBetween) and [`Fragment.nodesBetween`](https://prosemirror.net/docs/ref/#model.Fragment.nodesBetween) is now part of the public interface.

Page 11 of 18

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.