Embed local HTML files as interactive iframes in your Obsidian markdown notes.
- Install and enable BRAT from Obsidian's community plugins.
- Open Settings → BRAT → Beta Plugin List → Add Beta plugin.
- Enter this repository URL:
https://github.com/Poesy-Lab/obsidian-local-html-embed - Enable "Local HTML Embed" from Settings → Community plugins.
- Download this repository
- Copy
main.jsandmanifest.jsonto your vault's.obsidian/plugins/local-html-embed/folder - Go to Settings → Community plugins → Enable "Local HTML Embed"
This repository is not currently distributed through Obsidian's community plugin browser. To install this version, use BRAT or manual installation from this repository.
Use the html-embed code block in your markdown:
```html-embed
path: interactive/my-visualization.html
height: 500
```| Parameter | Description | Default |
|---|---|---|
path |
HTML file path (relative to current note) | Required |
height |
Iframe height in pixels | 500 (configurable) |
- Relative path: Resolved from current note's location →
charts/graph.html - Absolute path: Starts with
/, resolved from vault root →/shared/widget.html
| Setting | Description | Default |
|---|---|---|
| Language | UI language (English / 한국어) | English |
| Default height | Default iframe height | 500px |
| Border radius | Corner rounding | 8px |
| Show border | Display border around iframe | On |
| Background color | Iframe background (CSS value) | transparent |
- ✅ Relative and absolute path support
- ✅ Full JavaScript support in HTML files
- ✅ Works with Plotly, D3.js, Chart.js, and other visualization libraries
- ✅ Responsive width
- ✅ Dark/Light theme compatible
- ✅ Multi-language support (English, 한국어)
- ✅ Configurable appearance
Uses srcdoc method to directly inject HTML content into iframe, avoiding Obsidian's getResourcePath() API compatibility issues for stable operation across all platforms.
path: interactive/epsilon-delta.html
height: 520
path: /dashboards/sales-chart.html
height: 600
MIT License
- Added multi-language support (English, Korean)
- Language selector in settings
- Added settings tab (default height, border, background)
- Code refactoring
- Initial release
- Stable HTML embedding using srcdoc method
마크다운 노트에서 로컬 HTML 파일을 인터랙티브하게 임베드하는 Obsidian 플러그인입니다.
- Obsidian 커뮤니티 플러그인에서 BRAT을 설치하고 활성화합니다.
- 설정 → BRAT → Beta Plugin List → Add Beta plugin으로 이동합니다.
- 아래 저장소 URL을 입력합니다:
https://github.com/Poesy-Lab/obsidian-local-html-embed - 설정 → 커뮤니티 플러그인에서 "Local HTML Embed"를 활성화합니다.
- 이 저장소를 다운로드
main.js와manifest.json을 vault의.obsidian/plugins/local-html-embed/폴더에 복사- 설정 → 커뮤니티 플러그인 → "Local HTML Embed" 활성화
이 저장소 버전은 현재 Obsidian 커뮤니티 플러그인 브라우저를 통해 배포되지 않습니다. 이 버전을 설치하려면 위의 BRAT 설치 방법 또는 수동 설치 방법을 사용하세요.
마크다운 파일에서 html-embed 코드 블록을 사용하세요:
```html-embed
path: interactive/my-visualization.html
height: 500
```| 파라미터 | 설명 | 기본값 |
|---|---|---|
path |
HTML 파일 경로 (현재 노트 기준 상대경로) | 필수 |
height |
iframe 높이 (px) | 500 (설정 가능) |
- 상대 경로: 현재 노트 위치 기준 →
interactive/chart.html - 절대 경로:
/로 시작하면 vault 루트 기준 →/shared/widget.html
설정에서 언어를 한국어로 변경하면 모든 UI가 한국어로 표시됩니다.
| 설정 | 설명 | 기본값 |
|---|---|---|
| 언어 | UI 언어 | English |
| 기본 높이 | 기본 iframe 높이 | 500px |
| 테두리 둥글기 | border-radius 값 | 8px |
| 테두리 표시 | 테두리 on/off | On |
| 배경색 | iframe 배경색 | transparent |
- ✅ 상대/절대 경로 지원
- ✅ JavaScript 포함 HTML 완전 지원
- ✅ Plotly, D3.js, Chart.js 등 시각화 라이브러리 호환
- ✅ 반응형 너비
- ✅ 다크/라이트 테마 호환
- ✅ 다국어 지원 (English, 한국어)