A clean, lightweight, and intuitive WYSIWYG markdown editor with real-time preview and modern UI.
- Real-time markdown rendering
- Clean, modern interface
- Responsive design
- Simple integration
- Keyboard shortcuts for better workflow
Include the script in your HTML:
<script src="https://raw.githubusercontent.com/arazgholami/markdown-editor/main/wysiwyg-markdown-editor.js"></script>const editor = MarkdownEditor.init('your-element-id', {
placeholder: 'Start writing in markdown...',
autofocus: true
});# H1
## H2
### H3
#### H4
##### H5
###### H6**bold text**
*italic text*
__underline__
`inline code`- Unordered item 1
- Unordered item 2
- Nested item
1. Ordered item 1
2. Ordered item 2
- [ ] Task 1
- [x] Completed task[Link text](https://example.com)
> This is a blockquote
---
Horizontal rule→(Right arrow) to exit current tagBackspaceat end to revert to markdown
| Option | Type | Default | Description |
|---|---|---|---|
| placeholder | string | '' | Placeholder text for empty editor |
| autofocus | boolean | false | Auto-focus the editor on load |
Modern browsers including:
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
MIT
Created by Araz Gholami
If you find this project useful, consider supporting its development:
- GitHub: @arazgholami
- Email: contact@arazgholami.com
