Table of contents
A Markdown document outline is a list of the headings in a note, indented by level, that you click to jump to a section. It is built from the # headings already in the file, so it costs nothing to keep up to date and adds nothing to the file. It is a navigation aid for the writer, which is different from a table of contents written into the document for readers.
The outline comes straight from headings like these:
# Q3 research plan
## Background
## Methods
### Interviews
### Survey
## Timeline
An outline of that note shows six entries, with Interviews and Survey indented under Methods.
What is the difference between an outline and a written table of contents?
An outline panel lives in the editor. A written table of contents is a list of links saved in the file, so it shows up on GitHub, in an exported PDF and in every other app.
| Outline panel | Written table of contents | |
|---|---|---|
| Where it lives | In the editor | In the .md file |
| Kept up to date | Automatically | By you, or by a generator |
| Visible to readers | No | Yes |
| Changes the file | No | Yes |
If people will read the .md file itself, write the links by hand. How to make a Markdown table of contents covers the anchor rules and the tools that generate one.
Which headings show up in a Markdown document outline?
Headings written with # marks, from # to ######. A few rules decide what counts:
- The
#marks must start the line, after at most three spaces, and be followed by a space. - Lines inside a fenced code block are ignored, so a shell comment such as
# installdoes not appear. - Bold text on its own line is not a heading. If a section matters, give it a real heading. See Markdown headings.
- Formatting marks such as
**and backticks are dropped from the entry, so the list stays readable.
How do you keep a long note easy to navigate?
- Use one
#heading for the title of the note. - Use
##for the main sections and###for parts inside them. Do not skip levels. - Keep headings short, so the outline reads like a list of contents.
- Split the note into several files when the outline runs past a screen.
Table of contents in Noteline
Noteline has a Table of Contents panel in the desktop app and the mobile apps. It does not insert anything into the note.
- Desktop: choose View > Table of Contents, press Cmd+Shift+O on a Mac or Ctrl+Shift+O on Windows and Linux, or click the list icon at the top right of the window.
- iPhone, iPad and Android: tap the More button and choose Table of contents.
The panel lists the headings of the open note, each level indented a step further. Click an entry to move the cursor to that heading and scroll it to the top. The panel closes when you pick an entry or click outside it. If the note has no headings yet, it says so.
Common questions
Does the panel update while I type?
It reads the headings each time you open it. If you add a heading while the panel is closed, it appears the next time you open the panel.
Are setext headings included?
No. The panel lists only headings written with # marks, so a heading underlined with === or --- is left out. Rewrite it as a # or ## line to see it in the list.
Can I export the outline with the note?
The outline itself is not saved. Word export turns your headings into Word heading styles, so you can insert a Word table of contents in the exported file. See Word and PDF export.