Portabletext-html

Latest version: v1.1.3

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

Scan your dependencies

Page 1 of 2

1.1.3

Fix a bug where a custom block could not be placed directly after a list.

1.1.2

Improve error handling in `renderer.py`.

1.1.1

- Support custom marks with render_text method
- If a block content has multiple custom marks defined, only the first one will be applied

1.1.0

Add a new `render_text` method to `MarkerDefinition`.
The motivation behind adding it is to give a library user more flexibility when they want to render a portable text block, for example:
- a text block is supposed to be rendered under a certain condition
- a content inside a text block is a placeholder

1.0.1

Support user-defined custom marks

Fixed a bug, where user defined custom marks weren't registered by the renderer correctly.

1.0.0

Package re-release under new name.

The package was renamed from `sanity-html` to `portabletext-html`, so the naming is more in line with other portable text-related tools and packages.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.