README file from
GithubHTML Page Preview
Inline preview for embedded HTML files in Obsidian. Expand
![[page.html]]directly inside your note and render the HTML page there.
Author: SATOSprod
License: Proprietary — see LICENSE
Features
- Inline HTML rendering — replace the default “open file” behavior with an expandable preview for embedded
.htmland.htmfiles - Expand / collapse — each embed can be opened inline and collapsed back at any time
- Two display modes:
- Fixed 16:9 — ideal for desktop; large pages scroll inside the frame
- Infinite height — the iframe grows to the full document height, even for very tall pages
- Open file button — keep a direct button to open the HTML file in its own Obsidian tab
- Minimal UI — SVG icons only, no emoji, flat business-style design
- GitHub-ready project — includes README, LICENSE,
.gitignore,manifest.json,versions.json,tsconfig.json, andesbuild.config.mjs
Requirements
- Obsidian 1.13.0 or later
- Works with embedded HTML files referenced like:
![[plugin_style.html]]
Installation
From source
git clone https://github.com/SATOSprod/html-page-preview.git
cd html-page-preview
npm install
npm run build
Copy these files into your vault:
<your-vault>/.obsidian/plugins/html-page-preview/
├── main.js
├── manifest.json
└── styles.css
Then open Obsidian → Settings → Community plugins → Installed plugins and enable HTML Page Preview.
Development mode
npm run dev
Configuration
Open Settings → HTML Page Preview.
| Setting | Default | Description |
|---|---|---|
| Display mode | Fixed 16:9 | Render large pages in a standard 16:9 frame with internal scrolling |
| Infinite height | — | Grow the iframe to the full page height; very large pages make the note very large |
Usage
- Put an HTML file in your vault, for example
plugin_style.html - Embed it in a note:
![[plugin_style.html]]
- Switch to Reading view
- Click Expand preview
- The HTML page is rendered inline in the note
- Click Collapse preview to hide it again
Notes
- The plugin targets embedded HTML files only (
.html,.htm) - Inline replacement is implemented with a Markdown post processor, so the inline HTML page preview is designed for Reading view
- Fixed 16:9 is better for large or complex pages because the note height stays manageable
- Infinite height is useful when you want the entire page rendered at once inside the note
File Structure
html-page-preview/
├── main.ts
├── main.js
├── styles.css
├── manifest.json
├── package.json
├── tsconfig.json
├── esbuild.config.mjs
├── versions.json
├── .gitignore
├── LICENSE
└── README.md
License
This project is released under a proprietary license.
Copying source code into other projects is not permitted.
See LICENSE for full terms.
© 2026 SATOSprod