HTML Page Preview

by SATOSprod
5
4
3
2
1
Score: 50/100

Description

Inline preview for embedded HTML files in Obsidian. Expand ![[page.html]] directly inside your note and render the HTML page there.

Reviews

No reviews yet.

Stats

1
stars
243
downloads
0
forks
139
days
139
days
139
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
5
commits

Latest Version

5 months ago

Changelog

README file from

Github

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.

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

  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