Skip to content

gzzhanghao/quill2docx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published