Skip to content
This repository was archived by the owner on Nov 13, 2021. It is now read-only.

Commit cf23cbc

Browse files
authored
Merge pull request #1 from stejul/feature/import-feature
Feature/import feature
2 parents 086a434 + b33ba52 commit cf23cbc

33 files changed

+2385
-4821
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Stefan Mikic
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 85 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,86 @@
1-
Markdown Parser for Editor.js
1+
<h3 align="center">EditorJS Markdown Importer/Exporter</h3>
22

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

assets/codex2x.png

-126 KB
Binary file not shown.

assets/demo.css

Lines changed: 0 additions & 163 deletions
This file was deleted.

assets/json-preview.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

dist/0.bundle.js

Lines changed: 0 additions & 1498 deletions
This file was deleted.

0 commit comments

Comments
 (0)