You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Preview button on Markdown code blocks in chat
#38502
When an agent replies with a fenced ```markdown block (a draft README, PR body, release notes, and so on), the chat shows it only as highlighted source. To see how it renders, you have to copy it somewhere else.
Idea: give Markdown code blocks a small eye button in the header, next to the existing wrap and copy buttons. It switches the block between source and a rendered preview, using the same Markdown renderer as the chat. Copy still copies the source.
Mockup (eye added, outlined in red):
Related ideas, which cover Markdown files rather than code blocks in chat:
#30027 open Markdown files as a rendered preview from the file tree
#34229 mobile: remember the preferred Markdown view (Preview / Source)
#34347 rendered preview for Markdown file changes in the PR view
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When an agent replies with a fenced
```markdownblock (a draft README, PR body, release notes, and so on), the chat shows it only as highlighted source. To see how it renders, you have to copy it somewhere else.Idea: give Markdown code blocks a small eye button in the header, next to the existing wrap and copy buttons. It switches the block between source and a rendered preview, using the same Markdown renderer as the chat. Copy still copies the source.
Mockup (eye added, outlined in red):
Related ideas, which cover Markdown files rather than code blocks in chat:
🤖 Claude Opus 5.5
All reactions