Generate a Dynamic Table of Contents in Obsidian
How dynamic and static tables of contents work in Obsidian, what each stores in your notes, and how they hold up when you copy, export or share.
A table of contents in Obsidian can be produced in three ways: viewed in a sidebar, written into the note as plain Markdown, or generated on the fly by a plugin each time the note renders. These options look similar on screen but behave very differently once a note leaves Obsidian. This review explains what each approach actually changes in your file, where it stays usable, and when a plain-text list is the safer choice.
Short answer: is a dynamic TOC right for your notes?
A dynamically generated table of contents suits long notes that you edit often and read mainly inside Obsidian. Its main benefit is that it updates itself as headings are added, renamed or reordered, so it does not drift out of date. The decisive tradeoff is portability: the contents list is computed at display time, so the file itself holds only an instruction to build it. Outside Obsidian, or in Obsidian without the same plugin enabled, that instruction appears as an inert code block or nothing useful at all.
A static, plain-text list of heading links is preferable when the note will be shared, exported, published, synced to other Markdown editors, or kept as a long-term archive. If you only need to navigate a note while working on it, Obsidian's built-in Outline view may be enough and adds nothing to the file.
The three approaches compared
| Approach | Where it lives | Updates automatically | Survives outside Obsidian | Main cost |
| Outline core plugin | Sidebar pane, not in the note | Yes | Not applicable; nothing is stored | Not visible to readers of the file |
| Static list of heading links | Plain Markdown text inside the note | No; you edit or regenerate it | Text survives; link syntax may not work everywhere | Goes stale when headings change |
| Community plugin code block | A fenced block in the note, rendered by the plugin | Yes, while the plugin is active | Shows as a code block or raw text | Depends on a third-party plugin |
What each approach actually changes
The useful distinction is between stored characters and visual presentation. A static list changes the stored text of your note: the heading links are real characters in the Markdown file, readable by any text editor. A dynamic table of contents changes only presentation. The file stores a short placeholder, usually a fenced code block, and the plugin reads the note's headings and draws a linked list in its place when the note is displayed in Reading view or Live Preview.
A static list in Obsidian typically uses internal links that point to headings in the same note, written with a hash sign inside double brackets:
- [[#Overview]]
- [[#Setup]]
- [[#Installing the plugin]]
- [[#Inserting the block]]
- [[#Limitations]]
A dynamic version replaces that list with a block the plugin recognizes. The example below is illustrative only; the block label, available options such as heading depth, and whether an inline marker is supported differ between plugins, so check the documentation of the plugin you install.
```toc
```
The Outline core plugin changes neither: it reads the headings and lists them in a side pane without writing anything to the note.
Setting up a dynamic table of contents
- Decide whether the sidebar Outline already meets your need; if it does, no plugin is required.
- If you want the contents list inside the note, turn on community plugins in Obsidian's settings and browse for a table of contents plugin.
- Read the plugin's description before installing, including its block syntax, options and how actively it is maintained.
- Insert the plugin's block where you want the list, usually just below the note's title or introduction.
- Switch to Reading view or Live Preview to confirm the list renders and that each entry jumps to the right heading.
- Rename a heading and check that the list updates, so you know the dynamic behavior works in your vault.
Community plugins are third-party code. This review does not assess any specific plugin's quality, maintenance or data handling, and those should not be inferred from a plugin's name or listing.
Will it stay readable after copying or sharing?
Opening the file elsewhere: because the dynamic list is not stored in the file, any other Markdown editor, a Git host or a plain text viewer will show only the placeholder block. A reader there gets no contents list. A static list remains visible as text, though Obsidian's double-bracket heading links are not standard Markdown and will not be clickable in most other tools.
Portable link syntax: if a static list needs to work outside Obsidian, standard Markdown links with anchors are more widely understood than wikilinks. Obsidian can be set to write Markdown-style links instead of wikilinks. However, renderers disagree on how a heading becomes an anchor (case, spaces and punctuation are handled differently), so a link that works in Obsidian may break elsewhere. Test the list in the actual destination rather than assuming.
Copying text: copying from source mode copies the placeholder block, not the list. What you get when copying from Reading view depends on how the plugin renders its output and on the destination app; this was not tested for this review, so verify it for your plugin and target before relying on it.
Publishing and exporting: Obsidian Publish does not run community plugins, so a plugin-generated list should not be expected on a published site; check Publish's own navigation settings instead. Export to PDF works from the rendered view, which suggests plugin output may appear, but this has not been verified here and should be checked with a test export.
Search: Obsidian's search works on the text stored in your files. A dynamic list adds no searchable text, while a static list duplicates heading names, which can add extra matches when you search for a heading. In both cases the headings themselves remain searchable.
Accessibility: screen reader users generally navigate by real heading structure, so correctly nested headings matter more than any contents list. A table of contents is a supplement, not a substitute. How a particular screen reader handles a plugin-rendered list in Obsidian was not documented or tested for this review.
When plain text is the better choice
- The note will be read by people who do not use Obsidian or do not have the same plugin.
- You keep notes in a Git repository or sync them to other Markdown editors.
- The note is published through Obsidian Publish or another static site tool.
- You want the file to stay self-contained and readable years from now, independent of any plugin.
- Headings rarely change, so a list you update by hand is unlikely to go stale.
Evidence gaps
No plugin-specific documentation, test results or measurements were supplied for this review. Claims about exact block syntax, PDF export output, copy behavior from Reading view and screen reader handling are therefore unconfirmed. Before adopting a dynamic table of contents widely, run a short test: build one in a sample note, export it, open the file in your other tools, and check it with any assistive technology you rely on.