Last active
July 20, 2018 02:19
-
-
Save jhoughjr/b091e3bc8504f9f881ce7c5bc656a50c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const RtfToDeltaConverter = require('@kenyog/rtf-to-quill-delta'); | |
module.exports.getDelta = async function(rtf) { | |
let converter = new RtfToDeltaConverter(); | |
let delta = await converter.convert(rtf); | |
let ops = delta["ops"]; | |
return ops; | |
}; | |
require('make-runnable/custom')({ | |
printOutputFrame: false | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment