Editorjs Converter
This converts editorjs json data into HTML and MD
Installation
npm install editorjs-converter
Usage
HTML
Example 1
const converter = require('editorjs-converter');
const data = {}
const convertedData = converter(data, "html");
console.log(convertedData)
Example 2
const converter = require('editorjs-converter');
const data = {}
const convertedData = converter(data).toHTML();
console.log(convertedData)
MarkDown
Example 1
const converter = require('editorjs-converter');
const data = {}
const convertedData = converter(data, "md");
console.log(convertedData)
Example 2
const converter = require('editorjs-converter');
const data = {}
const convertedData = converter(data).toMD();
console.log(convertedData)
Coming Soon
JSX and Yaml coming soon.
Author
Oyetoke Toby oyetoketoby80@gmail.com
Support me on: Patreon