|
1 |
| -Markdown Parser for Editor.js |
| 1 | +<h3 align="center">EditorJS Markdown Importer/Exporter</h3> |
2 | 2 |
|
3 |
| -* export to markdown |
4 |
| -* load from markdown |
5 |
| -* save MDX information as well |
| 3 | +<p align="center"> |
| 4 | +A plugin which allows the user to export the EditorJS data to Markdown and import it from Markdown. |
| 5 | +</p> |
| 6 | + |
| 7 | + |
| 8 | +## Table of Contents |
| 9 | + |
| 10 | +* [About the Project](#about-the-project) |
| 11 | + * [Built With](#built-with) |
| 12 | +* [Getting Started](#getting-started) |
| 13 | + * [Prerequisites](#prerequisites) |
| 14 | + * [Installation](#installation) |
| 15 | +* [Usage](#usage) |
| 16 | +* [Contributing](#contributing) |
| 17 | +* [License](#license) |
| 18 | +* [Acknowledgements](#acknowledgements) |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | +## About The Project |
| 23 | + |
| 24 | +I intend to use the editor which should be exported/imported from Markdown. |
| 25 | + |
| 26 | +### Built With |
| 27 | + |
| 28 | +* [Remark](https://remark.js.org/) |
| 29 | + |
| 30 | + |
| 31 | +## Getting Started |
| 32 | + |
| 33 | +To get a local copy up and running follow these simple steps. |
| 34 | + |
| 35 | +### Prerequisites |
| 36 | + |
| 37 | +- yarn |
| 38 | + |
| 39 | +### Installation |
| 40 | + |
| 41 | +1. Clone the repo |
| 42 | +```sh |
| 43 | +git clone https://github.com/stejul/editorjs-markdown-parser |
| 44 | +``` |
| 45 | +2. Install packages |
| 46 | +```sh |
| 47 | +yarn |
| 48 | +``` |
| 49 | + |
| 50 | +## Usage |
| 51 | + |
| 52 | +- Load up the bundled file (`dist/bundle.js`) in you document. |
| 53 | +- Add the Importer/Exporter to the EditorJS tools. |
| 54 | + |
| 55 | +```js |
| 56 | +const editor = new EditorJS({ |
| 57 | + autofocuse: true, |
| 58 | + tools: { |
| 59 | + markdownParser: MDParser, |
| 60 | + |
| 61 | + markdownImporter: MDImporter, |
| 62 | + }, |
| 63 | +}; |
| 64 | +``` |
| 65 | +
|
| 66 | +***The Plugin can now be used in the Editor-Toolbar*** |
| 67 | +
|
| 68 | +
|
| 69 | +## Contributing |
| 70 | +
|
| 71 | +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**. |
| 72 | +
|
| 73 | +1. Fork the Project |
| 74 | +2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`) |
| 75 | +3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`) |
| 76 | +4. Push to the Branch (`git push origin feature/AmazingFeature`) |
| 77 | +5. Open a Pull Request |
| 78 | +
|
| 79 | +
|
| 80 | +## License |
| 81 | +
|
| 82 | +Distributed under the MIT License. See `LICENSE` for more information. |
| 83 | +
|
| 84 | +## Acknowledgements |
| 85 | +
|
| 86 | +* [Lukas Gabsi](https://github.com/gabsii) - Helped me with his JS expertise |
0 commit comments