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.
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.