A minimal Markdown editor widget with live preview, formatting toolbar, and save/load functionality.
To install the library, run:
npm install minimal-markdown-editor-widget
Include the necessary HTML structure in your webpage:
<textarea id="editor"></textarea>
<div id="preview"></div>
Then, include the following JavaScript code in your project:
// JavaScript code provided above
- Live Markdown preview.
- Toolbar buttons for formatting options (bold, italic, underline).
- Save and load functionality to store and retrieve Markdown content.
This library is licensed under the MIT License.