Skip to content

mastito03/render-quill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

render-quill Build Status

render quill delta to html string on server

Example

using callback:

var render = require('render-quill')

var delta = {
  ops: [{
    insert: 'Hello',
    attributes: {
      bold: true
    }
  }, {
    insert: ' world!!'
  }]
}

render(delta, (err, output) => {
  console.log("callback: " + output)
})

using promises:

var render = require('./index.js')

var delta = {
  ops: [{
    insert: 'Hello',
    attributes: {
      bold: true
    }
  }, {
    insert: ' world!!'
  }]
}

render(delta).then(output => {
  console.log("promise: " + output)
})

About

render quill delta to html string on server

Resources

Stars

Watchers

Forks

Packages

No packages published