/quill-delta-markdown

To and from Markdown and Quill delta

Primary LanguageJavaScript

Quill delta-markdown converter

Converter from the Delta document format used by the Quill text editor to Markdown, using the commonmark.js parser and thus following the Commonmark Spec.

Usage

1 - Use it to convert your delta document to markdown

const { fromDelta } = require('quill-markdown-delta')
const markdown = fromDelta(deltaFromElseWhere)

2 - Use it to convert your markdown document to delta ops

const { toDelta } = require('@slite/quill-markdown-delta')
const deltaOps = toDelta(txtFromElseWhere)

Test

npm install
npm test

About

This lib was forked from the Slite Team's fork of Bart Visscher (bartv2) 's lib.