unified

Project: syntax-tree/mdast-util-from-quill-delta

Package: mdast-util-from-quill-delta@0.1.3

  1. Dependencies: 3·Dependents: 0
  2. utility to transform Quill delta to mdast
  1. markdown 88
  2. mdast 72
  3. mdast-util 15

mdast-util-from-quill-delta

GitHub CI Downloads Size Sponsors Backers Chat

utility to transform Quill delta to mdast

Install

npm:

npm install mdast-util-from-quill-delta

Usage

With Quill delta

import Delta from 'quill-delta'
import mdastFromDelta from 'mdast-util-from-quill-delta'

const delta = new Delta([{insert: 'plain text'}])

const mdast = mdastFromDelta(delta)

console.log(JSON.stringify(mdast, null, 2))

outputs

{
  "type": "root",
  "children": [
    {
      "type": "paragraph",
      "children": [
        {
          "type": "text",
          "value": "plain text"
        }
      ]
    }
  ]
}

With Quill content

// TODO

With Quill streaming content

// TODO

Supported Quill Content Types

Contribute

See contributing.md in syntax-tree/.github for ways to get started. See support.md for ways to get help.

This project has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.

License

MIT © Christian Murphy