This guide is intended for use with the Atom IDE/Text Editor
Note: Due to a bug, you can only use the Table of Contents generator on one markdown file at a time. Using the generator with two or more markdowns open in tabs will result in unexpected behavior. You may need to restart Atom if the generator starts acting up.
- Open the settings tab (Edit ->Preferences)
- Click the Install tab in the left column
- Search "markdown-toc"
- Click "install"
- Open package command list (cntrl-shift-p)
- Search for "Markdown-toc Update" and click it
From now on, the Table of Contents will automatically update every time the markdown is saved in Atom.
Note: Every time you open Atom you will have to manually update the Table of Contents once (following the two steps above) before it will auto update.
Note: The generator will not work if your markdown skips a depth (i.e. includes ## and #### but no ###)
- Move the first line of your markdown down a line or two (i.e. not line 1) and click in line 1. (The table of contents will be inserted wherever you are actively editing.)
- Open package command list (cntrl-shift-p)
- Search for "Markdown-toc Toggle." If found, click it. Otherwise, search for "Markdown-toc Create" and click it instead.
Note: If you choose to start at a depth other than 1, you must change the depthFrom field in the first commented line of the Table of Contents to the first depth you use.