Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rizki4106 committed Mar 1, 2021
1 parent aa71c86 commit 871d1fe
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions README.Md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# editor-js-parser

```bash
npm install @son_xx/editor-js-parser
npm install editorjs-viewer
```

editor-js-parser is tool to convert json data to html from [editorjs](https://editorjs.io/).
<br/>
suported component

1. checklist
2. embed
3. head
Expand All @@ -13,20 +16,24 @@ suported component
6. paragraph
7. quote
8. raw
9. table
10. code
11. warning

for styling **quote** and **checklist** we use bootstrap so make sure you have install bootstrap on your project

## example

```javascript
import Parser from '@son_xx/editor-js-parser'
import Parser from 'editorjs-viewer'
const data = {
time: 1605667704216,
time: 1605667704216,
version: "2.19.0"}
blocks: Array(1)
0:{
0:{
data: {text: "header example",level: 2}
type: "header"
}
}
time: 1605667704216
version: "2.19.0"
}
Expand All @@ -36,4 +43,5 @@ console.log(result)
// outout
// <h2>header example</h2>
```

LICENCE MIT

0 comments on commit 871d1fe

Please sign in to comment.