Skip to content

Commit

Permalink
Release v5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed Apr 3, 2022
1 parent 994be0c commit aa3683a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

> All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## Unreleased
## [v5.0.0](https://github.com/springload/draftjs_exporter/releases/tag/v5.0.0)

### Added

- Add tentative support for Python 3.11.
- Add new "string_compat" engine for maximum output stability, with identical output to its first release. To use it, set the `engine` property to `'engine': DOM.STRING_COMPAT,` ([#138](https://github.com/springload/draftjs_exporter/pull/138)).

### Removed

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ This exporter takes the Draft.js ContentState data as input, and outputs HTML ba
pip install draftjs_exporter
```

We support the following Python versions: 3.7, 3.8, 3.9, 3.10. For Python 2.7 and 3.4 support, please use [v2.1.7](https://github.com/springload/draftjs_exporter/tree/v2.1.7) of the exporter. For Python 3.5, use [v3.0.1](https://github.com/springload/draftjs_exporter/tree/v3.0.1). For Python 3.6, use [v4.1.2](https://github.com/springload/draftjs_exporter/tree/v4.1.2).
We support the following Python versions: 3.7, 3.8, 3.9, 3.10, 3.11. For legacy Python versions, find compatible releases in the [CHANGELOG](https://github.com/springload/draftjs_exporter/blob/main/CHANGELOG.md).

In your code, create an exporter and use the `render` method to create HTML:

Expand Down Expand Up @@ -259,7 +259,7 @@ config = {
'engine': DOM.HTML5LIB,
# Or for lxml:
'engine': DOM.LXML,
# Or to use the "maximum stability" string_compat engine:
# Or to use the "maximum output stability" string_compat engine:
'engine': DOM.STRING_COMPAT,
}
```
Expand Down
2 changes: 1 addition & 1 deletion draftjs_exporter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = "draftjs_exporter"
__version__ = "4.1.2"
__version__ = "5.0.0"
__author__ = "Springload"
__license__ = "MIT"
__copyright__ = "Copyright 2016-present Springload"

0 comments on commit aa3683a

Please sign in to comment.