File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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> ,
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments