Skip to content

Add preview button for markdown files in diff view #8708

Closed

Description

@AmethystLiang

Problem

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.

Made with Orca 🐋

Activity

  1. added
    enhancement
    on Jul 14, 2026
  2. nwparker commented on Jul 24, 2026

    @nwparker
    Contributor

    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.

    Visual evidence

    annotate-diff.jpg markdown-editor.jpg
    annotate-diff.jpg markdown-editor.jpg
  3. rodboev commented on Sep 5, 2026

    @rodboev
    Contributor

    Closing this issue because current main now exposes Markdown preview controls for diff sources.

  4. nwparker commented on Sep 27, 2026

    @nwparker
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions