An utility to parse editorjs JSON data to HTML code which looks like as you see in editor mode. Supports basic editorjs blocks which are customizable as well. Extendable.
run
npm install editorjs-html
import edjsParser from 'editorjs-to-html';
const edjsParser = edjsHTML();
let html = edjsParser.parse(editorjs_clean_data);
You can also extend pre-configured blocks by putting object in edjsHTML which has an structure:
{'block-name': (args) => template}
- alert,
- checklist,
- code,
- delimiter,
- header,
- image,
- LinkTool,
- list,
- paragraph,
- quote,
- raw,
- table,
- warning,
- embed,
MIT Public License