I know this can be hard for agent-shell-markdown-replace-markup but couldn't resist to ask.
When I select a region in an agent buffer and copy it, I'd
like to get the raw markdown (# Title, _italic_, `code`) rather than
the rendered text.
Today, with the default in-place renderer (agent-shell-markdown-replace-markup),
inline markup is deleted from the buffer at render time, so copying can only
ever yield the stripped/rendered text — the original markdown isn't recoverable.
Tables already preserve their source via the agent-shell-markdown-table-source
text property and round-trip through copy/save, so there's a precedent.
Use case: pasting an agent's reply back into a markdown doc, issue, or another
chat, where I want the formatting markers preserved.
Checklist
I know this can be hard for
agent-shell-markdown-replace-markupbut couldn't resist to ask.When I select a region in an agent buffer and copy it, I'd
like to get the raw markdown (
# Title,_italic_,`code`) rather thanthe rendered text.
Today, with the default in-place renderer (
agent-shell-markdown-replace-markup),inline markup is deleted from the buffer at render time, so copying can only
ever yield the stripped/rendered text — the original markdown isn't recoverable.
Tables already preserve their source via the
agent-shell-markdown-table-sourcetext property and round-trip through copy/save, so there's a precedent.
Use case: pasting an agent's reply back into a markdown doc, issue, or another
chat, where I want the formatting markers preserved.
Checklist