A VSCode extension that converts selected markdown text to rich text and copies it to the clipboard so it can be pasted as formatted text into applications like Google Docs, Word, etc.
Sorry, this is a vibe-coded app. I just wanted the feature 🤷♀️
Demo
Showing regular copy & paste, and the new copy as rich text & paste

Install
Usage
- Open a Markdown file (or any document with markdown content).
- Optionally select a range — if nothing is selected the whole file is converted.
- Run Markdown: Copy as Rich Text by:
- Pressing
Ctrl+Shift+C(Windows/Linux) /Cmd+Shift+C(macOS), or - Right-clicking and choosing Markdown: Copy as Rich Text, or
- Running it from the Command Palette (
Ctrl+Shift+P).
- Pressing
- Paste into your destination app (Google Docs, Word, Outlook, Slack, etc.).
The keybinding and context menu entry are scoped to markdown files only.
Settings
copyMarkdownRichText.includeStyles— include inline CSS in the copied HTML (default:true).copyMarkdownRichText.highlightCode— syntax-highlight fenced code blocks (default:true).
Platform notes
- Windows / macOS: works out of the box (uses built-in PowerShell /
osascript). - Linux: requires
wl-clipboardon Wayland (sudo apt install wl-clipboard) orxclipon X11 (sudo apt install xclip). The extension picks one automatically based on$WAYLAND_DISPLAY. Without either, it falls back to copying the raw HTML as plain text and shows a warning.
Building
Local
npm installnpm watch- Then, hit F5 to debug.
Publishing
- Confirm everything is working & compiles
- Update version in package.json (e.g. "0.0.3")
vsce packageexport v='v0.0.4'; git add -A; git commit -m "$v release"; git push; git tag $v; git push origin $v;- PS:
$v = "v0.0.4"; git add -A; git commit -m "$v release"; git push; git tag $v; git push origin $v
- PS:
- Github Actions are configured to build & publish when a new tag is created, so on sucess it will auto publish
- These use auth token repo secrets to push to both extension galleries.