Skip to content

Make rendered diff the default view for Markdown diffs #513

Description

Problem

When opening a diff for a Markdown file in ThinkRail, it currently defaults to the Monaco split source view (apps/web/src/panels/DiffPane.tsx: tab.rendered ?? false). Users reviewing documentation, specifications, or changelogs have to notice and click the "Rendered" toggle on each diff tab to view formatted diffs (prose styling, headers, visual deletion/addition markers).

In contrast, opening an ordinary Markdown file in FilePane.tsx already defaults to the rendered preview (tab.view ?? "rendered").

Proposed solution

Make the Rendered diff view the default when opening Markdown diffs (tab.rendered ?? true when isMarkdownPath(tab.path)), matching the rendered-by-default behavior of FilePane.

Alternatives considered

Additional context


🤖 Generated by AI agent

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions