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

Quick and dirty addition of title "Table of Contents" #32

Closed AlfonsoRReyes closed 6 months ago

AlfonsoRReyes commented 7 months ago

This is a quick and dirty addition of a title to the TOC plugin, like in Typora.

This how it the TOC block will look after the modification: image

Instructions

  1. Modify line 108. Instead of const use let.
  2. Modify line 111. Add a level 2 heading as the title "Table of Contents" to the variable markdown.

Like this:

image

johansatge commented 6 months ago

👍 see #5