draft-to-html

0.0.1 • Public • Published

draft-to-html

In progress

Usage:

import convertToHtml from 'draft-to-html'
 
...
 
convertToHtml(contentState, options)

Options:

{
  parseStyle: string => HTMLElement,
  parseEntity: (entity: {
    type: DraftEntityType,
    mutability: DraftEntityMutability,
    data: ?{[key: string]: any},
  }) => HTMLElement,
  parseBlock: ContentBlock => HTMLElement
}

Readme

Keywords

none

Package Sidebar

Install

npm i draft-to-html

Weekly Downloads

105

Version

0.0.1

License

MIT

Unpacked Size

34.7 kB

Total Files

7

Last publish

Collaborators

  • juliankrispel