Skip to content

Tettra/draft-to-html

Repository files navigation

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
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •