https://github.com/citguru/editorjs-converter
EditorJS Converter - HTML and MD
https://github.com/citguru/editorjs-converter
Last synced: 3 months ago
JSON representation
EditorJS Converter - HTML and MD
- Host: GitHub
- URL: https://github.com/citguru/editorjs-converter
- Owner: CITGuru
- License: mit
- Created: 2019-06-21T11:38:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-21T11:46:41.000Z (over 6 years ago)
- Last Synced: 2025-10-05T00:42:56.315Z (3 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 5
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
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](http://citguru.github.io)
Support me on: [Patreon](http://patreon.com/oyetoketoby)