Skip to content

feat(web): add a View Source toggle to the resource preview for markdown/CSV/HTML #1552

Closed

Description

@cliffhall

The ContentViewer renders markdown (react-markdown), CSV (table), and HTML (sandboxed iframe) resources in a way that hides the underlying text. Add a "View Source" button at the bottom of the resource preview panel (left of Refresh) that swaps the rendered preview for the raw resource text, labeled "View Rendered" while in source mode.

Scope: markdown, CSV, HTML only (JSON/XML/CSS already show their source-ish syntax-highlighted text; PDF/images/audio have no meaningful text source). The toggle resets to the rendered view when the previewed resource changes.

Follow-up to #1329 / #1551.

Activity

  1. added a commit that references this issue on Jun 30, 2026
    2a60ac5
  2. self-assigned this
    on Jun 30, 2026
  3. added this to the v2.0.0 milestone on Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

v2Issues and PRs for v2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions