Simplify copying of markdown output

Status Fixed / completed
Maintainer reply None cached
Activity 11 comments · opened Apr 24, 2025 · closed Aug 17, 2026

One good use of claude code is to generate a PR description. Claude generates proper markdown, which is rendered nicely in the terminal. But then it's not possible to copy the raw markdown output. Instead you have to ask claude to write it to a file or use the gh cli to create a PR, which is not always desirable/ergonomic.

It'd be nice instead to have a /show-raw command or something, that would allow for easier copy-pasting of the raw markdown.

View original on GitHub ↗

10 Comments

eleijonmarck · 1 year ago

following up on this, it would be great to have a /copy-output or /copy slash command that would copy the output given to the terminal when you are in "claude" mode

atemate · 9 months ago

note: there's /export but it exports in plain text, no markdown

github-actions[bot] · 8 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

micahbf · 7 months ago

Just commenting to keep this issue alive - would be very useful to have a shortcut to alternate between raw markdown and fancy rendered markdown

and/or for /export to have a markdown option

waynemsmith · 7 months ago

The leading spaces on every line make copy-paste painful. I end up asking Claude to write to a file just to get clean output, which adds friction.

A built-in /copy command that puts the last response in the clipboard (without formatting artifacts) would be ideal.

Workaround: I created a custom skill at ~/.claude/skills/clip/skill.md that tells Claude to recall its last output and pipe it to pbcopy. Running /clip after any response copies clean text to the clipboard. Works, but should be built-in.

evnoj · 6 months ago

I believe this now exists in the form of the /copy slash command, which copies the last response to the clipboard as markdown.

danneu · 6 months ago

@evnoj bless you

Man, after the 50th time of writing "convert your last message to markdown and save it into scatch/zfs-tips.md" I finally mustered the energy to spend 5 seconds googling.

nullbio · 5 months ago

Anthropic really needs to look how copy/paste is done in OpenCode. It works incredibly nice in there. You don't even need to press ctrl+c either, or if using WSL2, you don't need to right-click to copy. You just highlight content and it copies it. This would ideally be a configurable toggle though (default on, is likely best).

But the way theirs works and fixes all the formatting issues (like leading tabs, spaces, and new lines) is great.

fdcastel · 4 months ago
You just highlight content and it copies it. This would ideally be a configurable toggle though (default on, is likely best).

This is pure gold! It might feel a little awkward in some contexts, but it fits perfectly in a chat interface -- especially for developers, where code snippets come up all the time.

pokey · 4 months ago

Showing cached comments. Read the full discussion on GitHub ↗