@gzzhanghao/quill2docx

0.1.6 • Public • Published

quill2docx

Convert Quill Delta to DocX.

This package is under heavy development, use it at your own risk

Usage

import quill2Docx from '@gzzhanghao/quill2docx'

quill2Docx(delta, {

  /**
   * Handle non-string content
   */
  handleCustomOperation(p, op) {

    // p: pObj in officegen
    // op: quill delta's operation

    // handle images, divider, etc...

    p.addText('[NOT_SUPPORTED_CONTENT]')
  },

}).then(docx => {

  // docx: officegen object

  docx.generate(outputStream)
})

Readme

Keywords

none

Package Sidebar

Install

npm i @gzzhanghao/quill2docx

Weekly Downloads

1

Version

0.1.6

License

MIT

Last publish

Collaborators

  • gzzhanghao