editorjs-converter
v1.0.0
Published
Converts editorjs json data output to HTML, MD, JSX
Downloads
6
Readme
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 [email protected]
Support me on: Patreon