Skip to content

Commit 7928f76

Browse files
committed
0.7.0
1 parent 80dee2d commit 7928f76

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.7.0
2+
- breaking change to block renderer API, depth is now passed along keys and data as second param
3+
- added proper surrogate pair handling for multibyte unicode characters #15
4+
- added split to cleanup options - it allows to separate groups with blocks that qualify for cleanup, see [example](http://lokiuz.github.io/redraft/)
5+
- added key for inline and entity renderers
16
## 0.6.0
27
- modified block renderers api: keys are now wrapped in an object along with new data key containing block metadata
38
- added joinOutput and cleanup options to the API

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const renderers = {
5050
* Those callbacks will be called recursively to render a nested structure
5151
*/
5252
inline: {
53-
// The key passed here is just a simple index
53+
// The key passed here is just an index based on rendering order inside a block
5454
BOLD: (children, { key }) => <strong key={key}>{children}</strong>,
5555
ITALIC: (children, { key }) => <em key={key}>{children}</em>,
5656
UNDERLINE: (children, { key }) => <u key={key}>{children}</u>,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redraft",
3-
"version": "0.6.0",
3+
"version": "0.7.0",
44
"description": "Renders the result of Draft.js convertToRaw using provided callbacks, works well with React",
55
"main": "./lib/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)