Skip to content

Commit

Permalink
Default blockToHTML values for article and section
Browse files Browse the repository at this point in the history
`draft-js` already has support for article and section blocks(facebookarchive/draft-js#2212). Due to the lack of support for these blocks from draft-convert, this results in an error: convertToHTML: missing HTML definition for block with type section
  • Loading branch information
Nik7A committed Apr 7, 2021
1 parent 1b78ab1 commit 580e984
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/default/defaultBlockHTML.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ export default {
},
media: <figure />,
atomic: <figure />,
article: <article />,
section: <section />,
};

0 comments on commit 580e984

Please sign in to comment.