shygoly134 downloadsEmbed a vault-local HTML file inside notes via an html-embed code block.
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.
.html file in an iframe.auto mode.<base> URL.Download main.js, manifest.json, and versions.json from the latest release.
Create this folder in your vault:
.obsidian/plugins/local-html-embed/
Put the three files into that folder.
Restart Obsidian or reload plugins.
Enable Local HTML Embed in Settings → Community plugins.
This repository is validated against Obsidian's community plugin checks.
Before publishing a version:
manifest.json, main.js, and versions.json in the repo root are final.npm run validate:release.manifest.json's version, for example 0.0.1.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.
```html-embed
examples/sample.html
```
The path is relative to the vault root.
```html-embed
examples/sample.html
900
```
The second line may be a number or a pixel value such as 900px.
```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
See the examples/ directory:
examples/basic.mdexamples/auto.mdexamples/sample.htmlThis 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.
This plugin is currently marked desktop-only because local iframe/blob behavior and script execution have not been validated on Obsidian mobile.
This repository is prepared for Obsidian community plugin submission. Until it is accepted into the community plugin list, install it manually from GitHub releases.