Skip to content

Introduction

PurrMD is a WYSIWYG Markdown editing plugin for CodeMirror6. This project focuses on the Markdown editing plugin component rather than being a complete editor.

✨ Core Features

  • WYSIWYG Editing - Instant preview of Markdown rendering
  • GFM Compatible - Supports GitHub Flavored Markdown
  • Shortcut Support - Hotkeys to improve editing efficiency
  • Slash Menu - Quickly insert Markdown syntax elements

📋 Supported Features

✨ Basic Features

FeatureSyntax Example
Headings# H1 ~ ###### H6
Bold**bold**
Italic*italic*
Strikethrough~~strikethrough~~
Highlight==highlight==
Inline Code`code`
Link[text](url)
Image![alt](src)
Bullet List- Bullet List
Ordered List1. Ordered List
Bullet Task List- [ ] Bullet Task List
Ordered Task List1. [ ] Ordered Task List
Blockquote> Blockquote
Horizontal Rule---
Code Block```javascript
console.log("Hello PurrMD");
```

⌨️ Shortcuts

PurrMD provides the following shortcuts to improve editing efficiency:

Ctrl+B - Bold

Ctrl+I - Italic

Ctrl+D - Strikethrough

Ctrl+H - Highlight

🔧 Slash Menu

Typing the / character in the editor triggers a slash menu, allowing quick insertion of various Markdown syntax elements

🙏 Acknowledgments

Special thanks to these excellent projects for inspiration:

  • HyperMD - Pioneering WYSIWYG Markdown editing experience
  • ProseMark - Reference implementation for CodeMirror6 Markdown
  • CodeMirror6 - Powerful editor core

Without the above projects, PurrMD would not exist.

❓ FAQ

Q:Since CodeMirror6 already has ProseMark, why does this project exist?

A:The initial purpose of this editor was to provide Markdown editing support for my personal note-taking app LonaNote. Implementing it myself makes it easier to extend and customize editor features.

Q:Does it support Vue/React?

A:The CodeMirror editor is framework-agnostic and can be easily integrated with any frontend framework.

📝 License

MIT license