A VS Code extension that converts HTML on your clipboard to GitHub-Flavored Markdown.
When you copy text from a webview (like Claude Code's chat panel), the clipboard receives rich HTML. This extension converts that HTML to clean Markdown so you can paste it into .md files, GitHub comments, Slack, and anywhere else that renders Markdown.
Keyboard shortcut — Select text and press Cmd+Shift+C (macOS) or Ctrl+Shift+C (Windows/Linux).
Right-click — Select text in a Claude Code webview and choose Copy as Markdown from the context menu.
Command palette — Run Clipboard: Copy as Markdown to convert whatever HTML is currently on your clipboard.
- Fenced code blocks with language annotations (
```typescript,```python, etc.) - GFM tables, task lists, and strikethrough
- Headings, bold, italic, links, and lists
- Windows CF_HTML clipboard headers (stripped automatically)
The extension runs as a UI extension, executing on your local machine even during Remote SSH sessions. It reads text/html from the system clipboard using OS-native tools and converts it with Turndown.
| Platform | Clipboard tool | Install |
|---|---|---|
| macOS | osascript |
Built-in |
| Windows | PowerShell | Built-in |
| Linux (X11) | xclip |
sudo apt install xclip |
| Linux (Wayland) | wl-paste |
sudo apt install wl-clipboard |