johansatge / obsidian-automatic-table-of-contents

💠 An Obsidian plugin to create a table of contents in a note, that updates itself when the note changes
MIT License
128 stars 12 forks source link

[FR]: Allow for embedded markdown headings to be part of the automatic TOC #48

Open ianTevesAcc opened 2 months ago

ianTevesAcc commented 2 months ago

If your working with multiple files and combining them into a single file. Then the table of content loses purpose as its no longer able to track embedded headings. A solution could be adding an option to add notes: which the user could link the note they embedded directly, or the plugin could just directly identify the headings inside the embeds and add them into the TOC.

image What it could maybe look like? image

An example of what the embed could look like:

title: 
notes: thisNote, anotherNote, anotherNote # Or maybe it could detect which notes have been embedded in the file and automatically add it in instead of adding it in manually
style: nestedList # TOC style (nestedList|nestedOrderedList|inlineFirstLevel)
minLevel: 0 # Include headings from the specified level
maxLevel: 0 # Include headings up to the specified level
includeLinks: true # Make headings clickable
debugInConsole: false # Print debug info in Obsidian console

Checklist