From md-to-clipboard
Use when the user wants to share Markdown content via Teams, Slack, Outlook, or other rich-text apps that don't render pasted raw Markdown. Converts Markdown to rich text on the macOS clipboard so it pastes as formatted text.
How this skill is triggered — by the user, by Claude, or both
Slash command
/md-to-clipboard:md-to-clipboardThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Copies Markdown as Teams-compatible rich text to the macOS clipboard using `md2clip`.
Copies Markdown as Teams-compatible rich text to the macOS clipboard using md2clip.
pandoc installed (brew install pandoc)md2clip on PATH (ships with this plugin — run the symlink command from the README)Get the Markdown content. Either:
.md file, OR/tmp/claude-{session_name}/clipboard-export.mdRun md2clip:
md2clip /tmp/claude-{session_name}/clipboard-export.md
The script handles all sanitisation, HTML conversion, post-processing, and clipboard copy.
Tell the user the rich text is on their clipboard and ready to paste.
md2clip handles internally--ascii)<p> tags (Teams ignores paragraph margins)<code>Teams' HTML sanitiser is aggressive. It keeps:
| Element | Renders as |
|---|---|
<code> | Monospace font + grey background |
<ul>/<li> | Bullet list |
<ol>/<li> | Numbered list |
<strong> | Bold |
<em> | Italic |
<br> | Line break (full line height, minimum enforced) |
<a href> | Clickable link |
<table> | Rendered table with borders |
Teams strips or ignores: <p> margins, style attributes, <pre>, <div>, CSS margin/padding.
Blank lines in the HTML source produce single-line gaps in Teams. This is the correct approach.
Avoid <span style="font-size:1px"><br></span> — Teams enforces minimum line height on any
<br>, producing double-height gaps regardless of the font-size hack.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub jodre11/claude-code-plugins --plugin md-to-clipboard