# feat\(web\): render HTML and PDF files in the file viewer · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/779ad56f09ee39be442dfb5b4376b650999295f8)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 779ad56f09ee39be442dfb5b4376b650999295f8

Requested commit: 779ad56f09ee39be442dfb5b4376b650999295f8

Commit: 779ad56f09ee39be442dfb5b4376b650999295f8

Tree: bbc7b98d9dfa589186e7bec5df119b22d97acb2e

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
feat(web): render HTML and PDF files in the file viewer

Web had no way to see an HTML file as a page: the integrated browser is
desktop-only, so the file panel always showed markup. Mobile already renders
browser files in a WebView.

The panel now shows HTML and PDF as a rendered page from the signed asset
URL, with a source toggle for HTML that works like the Markdown one. HTML
runs in a sandboxed frame with an opaque origin so a page cannot reach the
app's session; workspace files keep loading sibling assets, host files are
served on their own.

Co-Authored-By: Claude Code <noreply@anthropic.com>

```

## Parents

- [c0fa311c308958fa1d6249e57d233e77254d6724](https://git.cafe/pingdotgg/t3code/commit/c0fa311c308958fa1d6249e57d233e77254d6724?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/779ad56f09ee39be442dfb5b4376b650999295f8?format=markdown)
