Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vorjyga/editorjs-to-html
parse editorjs content format to html with saving editorjs layouts
https://github.com/vorjyga/editorjs-to-html
Last synced: 3 months ago
JSON representation
parse editorjs content format to html with saving editorjs layouts
- Host: GitHub
- URL: https://github.com/vorjyga/editorjs-to-html
- Owner: vorjyga
- License: mit
- Created: 2022-12-17T18:38:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-27T09:45:27.000Z (10 months ago)
- Last Synced: 2024-07-14T17:09:48.468Z (4 months ago)
- Language: CSS
- Size: 183 KB
- Stars: 4
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-editorjs - editorjs-to-html
README
# editorjs-to-html
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.# Installation
run
`npm install editorjs-html`# Usage
```
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}
```# Supported Block Types
- alert,
- checklist,
- code,
- delimiter,
- header,
- image,
- LinkTool,
- list,
- paragraph,
- quote,
- raw,
- table,
- warning,
- embed,# License
MIT Public License