delta-to-html-improved

0.3.7 • Public • Published

Delta to Html Improved

Build Status Coverage Status

This module builds upon https://github.com/joostory/delta-to-html

Install

npm install [--save] delta-to-html-improved

Use

import deltaToHtml from 'delta-to-html-improved'

or

const deltaToHtml = require('delta-to-html-improved');

let html = deltaToHtml(delta)

Details

Added support for:

  • fonts
  • align (left, right, center, justify)
  • strike
  • script
  • indent
  • different video sizes
  • lines that have multiple formats (lines that are italic, bold, underlined, ... etc. at the same time)

Changes:

  • Empty paragraphs (lines containing only \n) are now converted to <p><br/></p>
  • deep-equal dependency changed to fast-deep-equal
  • grouped blockquotes together
  • link set to open in new tab
  • Fixed issues which caused crashes

NOT supported yet:

  • text color
  • text backgroud
  • formula

Package Sidebar

Install

npm i delta-to-html-improved

Weekly Downloads

0

Version

0.3.7

License

MIT

Unpacked Size

17.6 kB

Total Files

7

Last publish

Collaborators

  • natanmorar