WYSIWYG Markdown Editor A clean, lightweight, and intuitive WYSIWYG editor with real-time preview
Most Markdown editors are either too heavy or too plain. This one tries to be just right , simple, modern, and fast.
Features
- Real-time Markdown rendering
- Clean, modern interface
- Responsive design
- Easy to integrate
- Keyboard shortcuts for smooth workflow
Demo
https://arazgholami.github.io/markdown-editor/Installation
Include it in your HTML:
Basic Usage
const editor = MarkdownEditor.init('your-element-id', {
placeholder: 'Start writing in markdown...',
autofocus: true
});
Markdown Syntax
Headers
# H1
## H2
### H3
#### H4
##### H5
###### H6
Text Formatting
**bold text**
*italic text*
__underline__
`inline code`
Lists
- Unordered item 1
- Unordered item 2
- Nested item
1. Ordered item 1
2. Ordered item 2
- [ ] Task 1
- [x] Completed task
Links & Media
[Link text](https://example.com)

Blockquotes & Dividers
> This is a blockquote
---
Horizontal rule
Navigation
→to exit current tagBackspaceat end to revert to raw markdown
Options
| Option | Type | Default | Description |
|---|---|---|---|
placeholder | string | '' | Text shown when editor is empty |
autofocus | boolean | false | Focus editor on load |
Comments