Quincy62 downloadsTurn fenced code blocks into switchable tabs, with lazy rendering and syntax aids.
Show Markdown content in switchable tabs inside Obsidian's reading view.
Write a tabs code block in a note and separate tabs with ---tab Title; use ---tab* Title for the tab that is active by default:
```tabs
---tab Notes
The first tab's content, with full **Markdown** support.
---tab* Code
The default-active tab:
\```js
console.log("hello");
\```
---tab Table
| A | B |
|---|---|
| 1 | 2 |
```
You don't need to memorize the syntax:
--- inside a tabs block suggests ---tab / ---tab*Features:
---tab is shown above the tabs as a preambleCopy main.js, manifest.json, styles.css into <vault>/.obsidian/plugins/tabbed-blocks/ and enable the plugin in Settings → Community plugins. Or install via BRAT with the repository QuincySx/obsidian-markdown-tabs.
npm install
npm run dev # watch build
npm run build # type check + production build
npm test # parser tests
在 Obsidian 阅读模式中用标签页(tabs)展示 Markdown 内容。
在笔记中写 tabs 代码块,用 ---tab 标题 分隔每个标签页,---tab* 标题 表示默认激活:
```tabs
---tab 说明
这里是第一个标签页的内容,支持完整 **Markdown**。
---tab* 代码
默认激活的标签页:
\```js
console.log("hello");
\```
---tab 表格
| A | B |
|---|---|
| 1 | 2 |
```
记不住语法也没关系:
tabs 块内输入 --- 会自动补全 ---tab / ---tab*特性:
---tab 之前的文字会作为前言显示在标签页上方把 main.js、manifest.json、styles.css 复制到 <库>/.obsidian/plugins/tabbed-blocks/,在设置中启用。
MIT