Skip to content

Instantly share code, notes, and snippets.

@jhoughjr
Last active July 20, 2018 02:19
Show Gist options
  • Save jhoughjr/b091e3bc8504f9f881ce7c5bc656a50c to your computer and use it in GitHub Desktop.
Save jhoughjr/b091e3bc8504f9f881ce7c5bc656a50c to your computer and use it in GitHub Desktop.
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