Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 928 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 928 Bytes

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.