rosswang2k downloads边对比 / 流程图 / 幻灯片 / 报告 / 时间线 — 在 Obsidian 中直接渲染空间化 HTML 内容。基于 html-effectiveness 方法论。
Render spatial HTML content inside notes AND view standalone HTML files within Obsidian. Based on the html-effectiveness methodology.
Markdown is linear, but information like comparisons, timelines, and dashboards needs spatial layout that only HTML can express. This plugin lets you render these structures directly inside your notes using html-effect code blocks.
AI-generated HTML reports (industry digests, analysis reports, data dashboards, etc.) open fine in a browser, but Obsidian only shows their source code. The plugin provides a dedicated HTML file viewer that renders these files correctly, including images, styles, and interactive elements.
Other HTML preview tools fail to load relative-path images such as src="images/foo.png" when opening HTML files inside Obsidian. This plugin automatically rewrites relative paths to Obsidian-recognized resource URLs so images display correctly.
html-effect code block (use directly in notes)| Template | Description |
|---|---|
| Compare — side-by-side comparison | Left/right split, ideal for comparing options or parameters |
| Timeline — timeline view | Vertical timeline with date markers |
| Diagram — ASCII diagram | Monospace text box for simple architecture diagrams |
| Report — KPI report | Data cards + body text, ideal for dashboards |
| Slides — paged slides | Page up/down navigation, ideal for presentations |
Open .html files directly in Obsidian with full rendering:
.html file → "Open with HTML Effectiveness".html files).html file opens it with this plugin.html file is editedallow-scripts, so JavaScript interactions workhtml-effect code block in a note```html-effect
compare
Left content
---
Right content
```
```html-effect
timeline
- [2026-01] Event one
- [2026-03] Event two
- [2026-06] Event three
```
```html-effect
---
type: report
---
##
- 85%: completion rate
- $2.5B: market size
# Report title
Body content...
```
In the Obsidian file explorer:
.html file → "Open with HTML Effectiveness"| Command | Description |
|---|---|
| Open current file in HTML viewer | Open the current file in the HTML viewer |
| Toggle edit/preview mode for HTML viewer | Switch the HTML viewer between editing and preview |
| Save HTML file (edit mode) | Overwrite-save the file being edited |
| Export note as HTML | Export the current note as a standalone HTML file |
| Compare | Insert the Compare template |
| Timeline | Insert the Timeline template |
| Report | Insert the Report template |
| Slides | Insert the Slides template |
| Diagram | Insert the Diagram template |
submit(), alert()/confirm(), window.open() and <a download> were silently blocked by the sandbox, which looked like a broken pageprefers-color-scheme, and its lang attribute matches the UI language instead of always being zh<canvas> or html/body { height: 100% | 100vh } are no longer wrapped in the zoom container, so canvas apps keep a 1:1 frame and pointer hit-testing stays accurate<meta name="he-no-zoom"> to any HTML file to skip the zoom wrapperRequires Obsidian 1.8.7 or later.
Settings → Community Plugins → Browse → Search "HTML Effectiveness"
yanqingwang/obsidian-html-effectivenesscd html-effectiveness-plugin
npm install
npm run dev # watch mode
npm run build # production build
MIT
Copyright (c) 2026 rosswang (Heart and Road Ltd)
在 Obsidian 中渲染空间化 HTML 内容 + 浏览独立 HTML 文件。基于 html-effectiveness 方法论。
Markdown 是线性的,但对比、时间线、仪表盘等需要空间布局的信息用 HTML 才能表达。本插件让你在笔记中用 html-effect 代码块直接渲染这些结构。
AI 生成的 HTML 报告(行业周报、分析报告、数据仪表盘等)在浏览器中打开正常,但在 Obsidian 中只能看到源码。插件提供了专用的 HTML 文件查看器,正确渲染这些文件,包括图片、样式、交互元素。
其他 HTML 预览工具在 Obsidian 中打开 HTML 文件时,src="images/foo.png" 这类相对路径的图片会加载失败。插件自动将相对路径转换为 Obsidian 可识别的资源 URL,图片正常显示。
html-effect 代码块(在笔记中直接使用)| 模板 | 说明 |
|---|---|
| Compare —— 双栏并排对比 | 左右分栏,适合方案对比、参数对照 |
| Timeline —— 时间线视图 | 垂直时间线,带日期标记 |
| Diagram —— ASCII 图示 | 等宽字体文本框,可画简单架构图 |
| Report —— KPI 报告 | 数据卡片 + 正文,适合仪表盘 |
| Slides —— 可翻页幻灯片 | 上下翻页,适合演示 |
在 Obsidian 中直接打开 .html 文件,完美渲染:
```html-effect
compare
左侧内容
---
右侧内容
```
```html-effect
timeline
- [2026-01] 事件一
- [2026-03] 事件二
- [2026-06] 事件三
```
```html-effect
---
type: report
---
##
- 85%:完成率
- $2.5B:市场规模
# 报告标题
正文内容...
```
在 Obsidian 文件管理器中:
.html 文件 → "Open with HTML Effectiveness"| 命令 | 说明 |
|---|---|
| Open current file in HTML viewer | 在 HTML 查看器中打开当前文件 |
| Toggle edit/preview mode for HTML viewer | 在 HTML 查看器的编辑与预览之间切换 |
| Save HTML file (edit mode) | 覆盖保存正在编辑的文件 |
| Export note as HTML | 导出当前笔记为独立 HTML |
| Compare | 插入 Compare 模板 |
| Timeline | 插入 Timeline 模板 |
| Report | 插入 Report 模板 |
| Slides | 插入 Slides 模板 |
| Diagram | 插入 Diagram 模板 |
lang 属性随界面语言而不是固定为 zh<canvas> 或 html/body { height:100% | 100vh } 的页面不再被包进缩放容器,画布应用保持 1:1,点击命中不再偏移<meta name="he-no-zoom"> 即可跳过缩放包装需要 Obsidian 1.8.7 或更高版本。
设置 → 社区插件 → 浏览 → 搜索 "HTML Effectiveness"
yanqingwang/obsidian-html-effectivenesscd html-effectiveness-plugin
npm install
npm run dev # 监听模式
npm run build # 生产构建
MIT
Copyright (c) 2026 rosswang (Heart and Road Ltd)