Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Local HTML Embed

shygolyshygoly134 downloads

Embed a vault-local HTML file inside notes via an html-embed code block.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

Local HTML Embed is an Obsidian plugin that embeds a vault-local HTML file inside a note with an html-embed code block.

It is useful when you keep standalone HTML reports, diagrams, dashboards, or interactive prototypes in your vault and want to view them directly from Markdown notes.

Features

  • Embed a vault-local .html file in an iframe.
  • Use explicit vault-relative paths or auto mode.
  • Optional fixed iframe height.
  • Automatic height mode when no height is provided.
  • Preserves UTF-8 text and supports relative assets with a generated <base> URL.
  • Injects fallback theme variables for common tab/card HTML layouts.
  • Adds optional collapsible presentation for common section-based HTML layouts.

Installation

Manual installation

  1. Download main.js, manifest.json, and versions.json from the latest release.

  2. Create this folder in your vault:

    .obsidian/plugins/local-html-embed/
    
  3. Put the three files into that folder.

  4. Restart Obsidian or reload plugins.

  5. Enable Local HTML Embed in Settings → Community plugins.

Release process

This repository is validated against Obsidian's community plugin checks.

Before publishing a version:

  1. Make sure manifest.json, main.js, and versions.json in the repo root are final.
  2. Run npm run validate:release.
  3. Create and push a git tag that exactly matches manifest.json's version, for example 0.0.1.
  4. Let GitHub Actions upload main.js, manifest.json, and versions.json as individual assets on that release.

Do not rely on the auto-generated source zip or tarball. The community validator checks for the individual uploaded assets.

Usage

Embed a file by path

```html-embed
examples/sample.html
```

The path is relative to the vault root.

Use a fixed height

```html-embed
examples/sample.html
900
```

The second line may be a number or a pixel value such as 900px.

Use auto mode

```html-embed
auto
```

auto resolves to an HTML file with the same path and basename as the current Markdown note.

For example:

notes/report.md
notes/report.html

Example

See the examples/ directory:

  • examples/basic.md
  • examples/auto.md
  • examples/sample.html

Security notes

This plugin embeds local HTML from your vault and allows scripts inside the iframe so interactive HTML can work.

Only embed HTML files that you trust. Treat local HTML files like executable content.

The iframe uses a sandbox with script support. This is necessary for many interactive local HTML documents, but it also means untrusted HTML can run JavaScript inside the embedded frame.

Desktop support

This plugin is currently marked desktop-only because local iframe/blob behavior and script execution have not been validated on Obsidian mobile.

Community plugin status

This repository is prepared for Obsidian community plugin submission. Until it is accepted into the community plugin list, install it manually from GitHub releases.

90%
HealthExcellent
ReviewSatisfactory
About
Embed a vault-local HTML file inside a note using an html-embed code block to view reports, diagrams, dashboards, or interactive prototypes directly in Markdown. Preserve UTF-8 and relative assets with a generated base URL, support vault-relative or auto mode, offer fixed or automatic iframe height, and inject fallback theme variables with optional collapsible presentation for section-based layouts.
HTMLFiles
Details
Current version
0.0.1
Last updated
Last month
Created
Last month
Updates
1 release
Downloads
134
Compatible with
Obsidian 1.5.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
shygolyshygoly
GitHubshygoly
  1. Community
  2. Plugins
  3. HTML
  4. Local HTML Embed

Related plugins

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Local REST API & MCP Server

Unlock your automation needs by interacting with your notes over a secure REST API.

QuickAdd

Quickly add new notes or content to your vault.

Recent Files

Display a list of recently opened files.

Omnisearch

Intelligent search for your notes, PDFs, and OCR for images.

Claudian

Embeds Claude Code/Codex as an AI collaborator in your vault. Your vault becomes agent's working directory, giving it full agentic capabilities: file read/write, search, bash commands, and multi-step workflows.

Image Converter

Convert, compress, resize, annotate, markup, draw, crop, rotate, flip, align, drag-resize, rename with variables, and batch process images: WEBP, JPG, PNG, HEIC, TIF

Text Extractor

A (companion) plugin to facilitate the extraction of text from images (OCR) and PDFs.

Flexplorer

Enhance the file explorer with custom sorting, pinning, and hiding.

Advanced URI

Control everything with URI.