0.1.6 • Published 7 years ago

@gzzhanghao/quill2docx v0.1.6

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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)
})
0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago