Skip to content

rdesmartin/quill-delta-markdown

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

To and from Markdown and Quill delta

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%