Skip to content

feat: HTML viewer#29

Merged
jamietre merged 1 commit into
mainfrom
feat/html-viewer
Apr 24, 2026
Merged

feat: HTML viewer#29
jamietre merged 1 commit into
mainfrom
feat/html-viewer

Conversation

@jamietre

Copy link
Copy Markdown
Collaborator

Summary

  • .html / .htm files show a Rendered toolbar button that displays the file in an inline iframe
  • New GET /api/v1/raw/{source}/{*path} endpoint serves files with source/path in the URL path rather than query params — this lets the browser resolve relative assets (images, CSS) correctly as sibling requests on the same endpoint
  • htmlFormat preference persisted to user profile (same pattern as markdownFormat / rtfFormat)

Test plan

  • Open an HTML file — toolbar shows "Rendered" button
  • Click Rendered — file displays in an iframe
  • Images and CSS from relative paths load correctly
  • Click Plain — returns to extracted text view
  • Preference persists across page reloads
  • Non-HTML files show no Rendered button

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jamietre jamietre merged commit a368d86 into main Apr 24, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant