Adds TOC (Table of Contents) features like the official one.

This plugin has two features:
1. Inline TOC: Type "{ntoc}" (numbered) or "{btoc}" (bullet) to insert the TOC. Similar to the official {toc} feature.
2. Note-level TOC: Select "Generate TOC" from note options to add TOC at the beginning of the note. As long as it's there, a new TOC overwrites the old one whenever it is triggered again.

Settings (can be configured in "Account Settings > Plugins > Generate TOC (Gear icon)"):
- Ordered TOC Expression Name: Expression name for numbered TOC. Defaults to "ntoc".
- Unordered TOC Expression Name: Expression name for bullet TOC. Defaults to "btoc".
- Enable Note Level TOC: Set this to "false" to turn off note-level TOC feature. Defaults to true.
- Use Ordered TOC in Note Level TOC: Set this to "false" to make Nove-level TOCs unordered (bullets). Defaults to true.

Disclaimer: I haven't thoroughly tested if this successfully works in every situation. Please use it at your own risk.

Note (Nov 20th, 2024): Unfortunately, I'm no longer using Amplenote and this plugin is no longer supported. Please use all or part of this note without any permission if you are interested in further development.