A data model converter between Markdown string and EditorJS data blocks.
This is a converter between markdown string and EditorJS data blocks. Not plugins for EditorJS, it's just a tool.
To get a local copy up and running follow these simple steps.
- Load up the bundled file (
dist/index.js
) in you document. - Use it where you need to convert
// to markdown string
EditorJSMarkdownConverter.toMarkdown(data = OutputData['blocks'])
// markdown to blocks
EditorJSMarkdownConverter.toBlocks(data = Markdown String)
- yarn
- Clone the repo
git clone https://github.com/stejul/editorjs-markdown-parser
- Install packages
yarn
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
- Lukas Gabsi - Helped me with his JS expertise