0.0.1 • Published 5 years ago

draft-to-html v0.0.1

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

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
}