@luca_scorpion/quill-delta-to-html
v0.1.2
Published
[](https://github.com/LucaScorpion/quill-delta-to-html/actions/workflows/build.yml)
Downloads
278
Readme
Quill Delta to HTML
A simple package that converts output from the Quill editor (the Delta format) to HTML.
See it in action: https://lucascorpion.github.io/quill-delta-to-html
Installation and Usage
Install the package using:
npm i @luca_scorpion/quill-delta-to-htmlThe package exports a single function, deltaToHtml:
import { deltaToHtml } from '@luca_scorpion/quill-delta-to-html';
const quill = new Quill('#editor', {});
// Use `getContents` to get the delta from the Quill editor.
const html = deltaToHtml(quill.getContents());