HTML Page Preview

approved

by SATOSprod

Inline preview for embedded HTML files in Obsidian. Expand HTML files directly inside notes with fixed 16:9 or infinite-height rendering. - This plugin has not been manually reviewed by Obsidian staff.

1 stars65 downloadsUpdated 28d agoMIT

HTML 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 .html and .htm files
  • 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, and esbuild.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.

SettingDefaultDescription
Display modeFixed 16:9Render large pages in a standard 16:9 frame with internal scrolling
Infinite heightGrow the iframe to the full page height; very large pages make the note very large

Usage

  1. Put an HTML file in your vault, for example plugin_style.html
  2. Embed it in a note:
![[plugin_style.html]]
  1. Switch to Reading view
  2. Click Expand preview
  3. The HTML page is rendered inline in the note
  4. 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

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.