renyeren81 downloadsRender Typora-style [TOC] as a clickable, nested table of contents in both reading view and Live Preview.
Typora-style [TOC] for Obsidian. Drop a [TOC] line anywhere in a note and it renders as a clickable, nested table of contents — in both reading view and Live Preview — instead of a dead blue [TOC] link.
[TOC] / [toc] line as a nested table of contents, built from the note's headings.[TOC] source when your cursor is on that line).1.2.3 numbering.Pending review. Once accepted, search for TOC Reader in Settings → Community plugins → Browse and install it directly.
Install BRAT, then run BRAT: Add a beta plugin and enter muzi-xiaoren/Obsidian--TOC--reader.
main.js, manifest.json, and styles.css from the latest release.<your-vault>/.obsidian/plugins/toc-reader/.git clone https://github.com/muzi-xiaoren/Obsidian--TOC--reader.git
cd Obsidian--TOC--reader
npm install
npm run build # produces main.js
Then copy main.js, manifest.json, styles.css into <your-vault>/.obsidian/plugins/toc-reader/ as above.
Put [TOC] on its own line, anywhere in a note:
# My Note
[TOC]
## Section 1
### Sub-section
## Section 2
In reading view and Live Preview the line becomes a nested, clickable table of contents. In source mode it stays as plain [TOC] text (by design).
Typora 里的 [TOC] 标签在 Obsidian 中只会显示成一个点不动的蓝色链接。装上本插件后,[TOC] 会渲染成和 Typora 相似的多级目录:
[TOC] 所在行会还原成源码,方便编辑。1.2.3 编号。