Skip to content

LucaScorpion/quill-delta-to-html

Repository files navigation

Quill Delta to HTML

Build

npm

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-html

The 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());