delta-to-html-improved
v0.3.7
Published
Delta to Html converter
Downloads
2
Maintainers
Readme
Delta to Html Improved
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 tofast-deep-equal
- grouped
blockquote
s together - link set to open in new tab
- Fixed issues which caused crashes
NOT supported yet:
- text
color
- text
backgroud
- formula