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: 26 days 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 (11 months ago)
- Last Synced: 2024-11-01T14:17:28.007Z (about 1 month ago)
- Language: CSS
- Size: 183 KB
- Stars: 7
- Watchers: 1
- Forks: 6
- 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