A VS Code extension for adding annotations to markdown files with AI assistance.
- Add annotations to selected text
- AI-powered explanations (Claude, Gemini, Codex)
- Manual note input
- Auto-generates
<mark data-note="">tags for web display
ln -s /path/to/MD_RedPen ~/.vscode/extensions/markdown-annotatorcp -r /path/to/MD_RedPen ~/.vscode/extensions/markdown-annotatorRestart VS Code after installation.
| OS | Shortcut |
|---|---|
| macOS | Cmd + Shift + M |
| Windows/Linux | Ctrl + Shift + M |
- Select text in a markdown file
- Press
Cmd + Shift + M(orCtrl + Shift + M) - Choose an option:
- Direct Input: Write your own note
- Claude: Request explanation from Claude AI
- Gemini: Request explanation from Gemini AI
- Codex: Request explanation from Codex AI
- For AI options:
- Review/edit the prompt, then press Enter
- Wait for AI response
- Review/edit the response, then press Enter
- The text is wrapped with
<mark data-note="note">selected text</mark>
Before:
TransferEngine uses RDMA for data transfer.After:
<mark data-note="RDMA enables direct memory access between computers without CPU involvement">TransferEngine uses RDMA for data transfer.</mark>To use AI features, you need to install and authenticate the CLI tools yourself.
| Model | CLI | Installation |
|---|---|---|
| Claude | claude |
Claude Code |
| Gemini | gemini |
Gemini CLI |
| Codex | codex |
Codex CLI |
- Install the CLI tool for your preferred AI model
- Authenticate with your own account/API key
- Verify the CLI works by running it in terminal (e.g.,
claude --help)
Note: If CLI tools are not installed, AI features will show an error. You can still use "Direct Input" to write notes manually.
| Item | Risk | Description |
|---|---|---|
| Data Collection | ✅ None | This extension does not collect or transmit any data |
| External Connections | ✅ None | Only calls locally installed CLI tools |
| Selected Text | Text is sent to AI through your own authenticated CLI |
Summary: This extension is safe. It only acts as a bridge to your locally installed CLI tools. Any data sent to AI services goes through your own authenticated CLI, under your control and responsibility.
Annotations added with this extension are displayed as highlights on Jekyll blogs. Visitors can click the highlight to view the note in a popup.
MIT License