Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 464 Bytes

File metadata and controls

30 lines (21 loc) · 464 Bytes

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
}