jamin11 downloadsOpen local HTML links from Markdown notes in the system default HTML app or a configured browser.
Open local HTML links from Obsidian Markdown notes in your external browser.
Features · Installation · Usage · Security · 中文说明
HTML External Opener is a lightweight Obsidian Desktop plugin for people who keep interactive demos, visualizations, reports, and standalone web pages alongside their Markdown notes. It opens local .html and .htm links in the operating system's default application or a browser executable you choose.
Once the plugin is approved and listed in the Obsidian Community Plugins directory:
After a GitHub Release is available:
main.js and manifest.json from Releases..obsidian/plugins/html-external-opener/ inside your Vault.Add a normal relative Markdown link to a local HTML file:
[Open interactive demo](examples/interactive-demo.html)
The editor command supports standard inline Markdown links and angle-bracket destinations containing spaces:
[Open demo](<examples/my interactive demo.html>)
| Setting | Description |
|---|---|
| Browser executable path | Optional absolute path to a browser executable. Leave blank to use the operating system's default application for HTML files. |
| HTML extensions | Comma-separated extensions to open externally. Defaults to html, htm. |
| Intercept rendered Markdown links | Enable or disable automatic opening when a local HTML link is clicked in Reading View. |
Example Chrome path on Windows:
C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe
The plugin is designed to handle local Vault files rather than arbitrary URLs.
http:, https:, mailto:, javascript:, and file: are not intercepted.shell: false; Markdown content is never used to construct a shell command.Important: HTML files can execute JavaScript and load remote resources when opened in a browser. Only open HTML files you trust. The plugin does not sandbox the contents of an HTML page.
file://; pages that depend on a web server (for example, some module imports, API requests, or service workers) may need a local development server.#section are not forwarded. A configured browser receives the fragment.Requirements: Node.js 20 or later.
npm ci
npm test
npm run build
npm run check
The build generates main.js and copies the release files into release-assets/. Generated files are intentionally excluded from source control; attach release-assets/main.js and release-assets/manifest.json to a GitHub Release.
See CONTRIBUTING.md for contribution guidelines and SECURITY.md for vulnerability reporting.
Released under the MIT License.
HTML External Opener 是一款面向 Obsidian 桌面版 的轻量插件,用于将 Markdown 笔记中的本地 HTML 链接交给系统默认程序或指定浏览器打开。
.html / .htm 链接,即可使用外部浏览器打开。社区插件市场: 待插件通过审核并上架后,在「设置 → 第三方插件 → 浏览」中搜索 HTML External Opener,安装并启用。
手动安装: 从 GitHub Releases 下载 main.js 和 manifest.json,放入 Vault 的 .obsidian/plugins/html-external-opener/ 文件夹,重启 Obsidian 后启用。
在 Markdown 笔记中添加普通相对链接:
[打开互动示例](examples/interactive-demo.html)
html, htm。插件只处理解析到当前 Vault 内的本地 HTML 文件。打开前会检查文件真实路径、文件类型和 Vault 边界;拒绝越界符号链接。自定义浏览器通过 shell: false 的方式启动。插件不读取或传输笔记内容,不联网,也不收集使用数据。
请注意:HTML 页面本身仍可能执行 JavaScript 或加载远程资源。只打开可信来源的 HTML 文件。
需要 Node.js 20 或更高版本。运行 npm ci、npm test、npm run build 和 npm run check 可安装依赖、运行测试并构建发布文件。
本项目采用 MIT License 开源。