Aidurber / obsidian-plugin-dynamic-toc

An Obsidian plugin for creating Tables of Contents that stay updated with your document
MIT License
269 stars 41 forks source link

Generate TOC for "only this header" or "after TOC block" #64

Open kevinawoo opened 2 years ago

kevinawoo commented 2 years ago

Sometimes one section gets long enough that it's hard to read, or maybe we would like an overview of the sub headings headings.

For example:

# Intro
blah blah blah...

# Section One: taking over the world
So what is this section about.... blah blah blah...

```toc
this_heading_only: true

Something else, blah blah blah

First Point

abc

Second Point

xyz

Second.a

zzz

Section 2

...


Or the example of "After TOC Block"
````md
# The thing
This is the thing...

Here's the nav of the rest of the note:
```toc
after_this_block: true

One

One.one

Two

Two.two



Is this possible to do/add?