lzq460 downloadsEnhanced HTML Viewer: Embedded preview, full-screen, zoom, dark mode sync, search, MHTML support, hot refresh.
An Obsidian plugin for previewing and embedding HTML/MHTML files directly in your vault.
![[file.html]]![[file.html#elementId]] shows only the specified element![[file.html|400]] for width, ![[file.html|400x300]] for width × height.obsidian/plugins/html-viewer-plus/ in your vaultNot yet on the community marketplace. Install via BRAT:
kuaile1407/html-viewer-plus![[demo.html]] default width and aspect ratio
![[demo.html|600]] width 600px
![[demo.html|600x400]] 600px × 400px
![[demo.html#chart]] show only id="chart" element
Click an HTML file in the file explorer to open it in a dedicated view with zoom, search, refresh, and open-externally controls.
| Button | Embed mode | Direct open |
|---|---|---|
| ⛶ | Fullscreen | — |
| + / - | — | Zoom in/out |
| ↺ | — | Reset zoom |
| 🔍 | — | Search |
| ↻ | — | Refresh |
| ↗ | Open externally | Open externally |
| → | Locate in file | — |
Right-click on HTML content to see ancestor elements with IDs. Click to copy embed syntax to clipboard.
| Option | Default | Description |
|---|---|---|
| Default width | 100% | Embed area default width |
| Aspect ratio | 4/3 | Supports 4/3, 16:9, 1.33 |
| Show toolbar | On | Action buttons on embed view |
| Enable zoom | On | Zoom in direct open mode |
| Zoom step | 0.1 | Zoom increment per scroll |
| Enable search | On | Search in direct open mode |
| Sync dark theme | On | Auto-inject dark CSS |
| Custom dark CSS | — | Appended after default dark styles |
| Custom background | Off | Force HTML body background color |
| Hot refresh | Off | Auto-reload on file change |
| MHTML support | On | Support .mht/.mhtml files |
.html .htm .shtml .xht .xhtml.mht .mhtmlIf this plugin helps you, consider buying me a coffee ☕
