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

Style HTML Viewer

Robin TanRobin Tan190 downloads

Renders HTML documents natively in Obsidian workspace tabs with local CSS, image, and script asset resolution, CSP security, and link interception.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

An Obsidian plugin that enables rendering of .html files directly within Obsidian workspace tabs.

Features

  • Workspace View Integration: Open HTML files inside a dedicated custom view tab.
  • Preview & Source Editor: Toggle between a sandboxed rendered preview and raw HTML source code.
  • DOM Relative Asset Resolution: Automatically parses HTML and converts relative resources (js, images, audio, video) to valid local Obsidian vault URIs.
  • Local Stylesheet Inlining: To circumvent browser/Obsidian iframe CSP boundary limitations that prevent loading external app:// stylesheets, the plugin automatically reads local CSS files, resolves nested asset url() values to absolute resource URIs, and injects them directly as inline <style> blocks.
  • IPC Link Interception: Intercepts links to local .md or .html files and opens them in native Obsidian workspace tabs. External web links (http(s)) are opened in the default browser.
  • Security Sandboxing & CSP: Executes pages inside an <iframe> with strict sandbox flags and enforces a strict, local-only Content Security Policy (CSP).
  • Live Reloading: Automatically re-renders the preview when the HTML file or any of its CSS/JS dependencies in the vault are modified.

Development

Setup and Commands

  1. Install dependencies:

    npm install
    
  2. Development compiler (with source mapping and file watching):

    npm run dev
    
  3. Production build:

    npm run build
    
  4. Run test suite:

    npm test
    

Developer Playbooks & References

For agent instructions, rules, and detailed technical specifications, see:

  • Workspace Agent Instructions - Primary guidelines for AI coding agents.
  • Project Architecture - Deep-dive codebase structure.
  • Development Workflow - Compilation guidelines and scripts.
  • Testing Standards - Seam-based testing constraints and Jest setup.
  • Security & Sandboxing - Content Security Policy (CSP) and iframe details.
  • CI/CD Release Pipeline - Automatic GitHub release workflow instructions.
HealthExcellent
ReviewPassed
About
Render HTML files inside Obsidian workspace tabs using a sandboxed iframe with a strict Content Security Policy. Toggle between live, auto-reloading rendered preview and raw source, convert relative assets to vault URIs, and open local links in native tabs while external links launch your browser.
HTMLWorkspaces
Details
Current version
1.0.5
Last updated
Last month
Created
Last month
Updates
3 releases
Downloads
190
Compatible with
Obsidian 1.2.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Buy Me a Coffee
Author
Robin TanRobin Tantaihoe
GitHubtaihoe
  1. Community
  2. Plugins
  3. HTML
  4. Style HTML Viewer

Related plugins

Vertical Tabs

Offer an alternative view that displays open tabs vertically, allowing users to group and organize tabs for a better navigation experience.

Open Tab Settings

Adds options to customize how tabs are opened, including open in new tab by default, preventing duplicate tabs, and more.

Workspace++

Workspace session manager with a native-feeling UI/UX.

Workspaces Plus

Quickly switch and manage workspaces.

Surfing

Surf the net like a web browser.

Custom Views

Create custom HTML views for your notes based on filter rules. Transform how your notes are displayed.

markdown export

Export Markdown to a package, including images.

Settings profiles

Create various global settings profiles, that sync between vaults.

HTML Viewer

Render .html files in a sandboxed view. Toggle scripts ON for games, visualizations, and interactive documents.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.