Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 520 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 520 Bytes

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