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
Add preview button for markdown files in diff view #8708
When reviewing changes to .md files in the diff view, it's difficult to see how the rendered output will look. The raw markdown syntax (like ## headings, ** bold, etc.) makes it hard to evaluate the actual visual impact of changes.
Proposed Solution
Add an easy "Preview" toggle button to the diff view when viewing .md files, similar to how GitHub's own PR diff view offers a rendered preview.
Requirements
Add a preview toggle button in the diff view toolbar (near "Collapse All", "Side by Side", "Wrap Off")
When toggled, render the markdown content in-place showing the final output
Allow switching back to the raw diff view
Only show the preview button for .md files (and similar markdown extensions like .mdx, .markdown)
Use Case
Reviewing documentation changes is a core workflow. Being able to quickly preview how markdown renders without leaving the diff view would significantly improve the review experience.
Automated screenshot pass — this comment is from a bulk process that only adds visual context (Electron e2e captures or re-uploaded docs product shots). It is not a code review, triage decision, or claim that the change is verified. Images may be current baselines or related product references, not before/after of a specific PR branch.
What this image is
Product-shot references only (re-uploaded from docs/assets): annotate-diff + markdown editor. Not an in-diff preview-button mock.
Resolved in current main: single-file Markdown diff tabs expose Source/Rich view modes, allowing rendered Markdown preview and switching back to source. The control is covered by getMarkdownViewModes tests for single-file diffs. Combined multi-file diff surfaces remain separate; this issue asks for preview while reviewing Markdown diffs, and the maintainer confirmed those diff-source controls are available.
Activity
nwparker commentedon Jul 24, 2026
What this image is
Product-shot references only (re-uploaded from docs/assets): annotate-diff + markdown editor. Not an in-diff preview-button mock.
Visual evidence
rodboev commentedon Sep 5, 2026
Closing this issue because current
mainnow exposes Markdown preview controls for diff sources.nwparker commentedon Sep 27, 2026
Resolved in current main: single-file Markdown diff tabs expose Source/Rich view modes, allowing rendered Markdown preview and switching back to source. The control is covered by
getMarkdownViewModestests for single-file diffs. Combined multi-file diff surfaces remain separate; this issue asks for preview while reviewing Markdown diffs, and the maintainer confirmed those diff-source controls are available.