Skip to content

Commit aeef907

Browse files
authored
Added the Table of Contents (#15218)
1 parent 1c51d00 commit aeef907

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
53.6 KB
Loading

content/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ To create a heading, add one to six <kbd>#</kbd> symbols before your heading tex
2424

2525
![Rendered H1, H2, and H6 headings](/assets/images/help/writing/headings-rendered.png)
2626

27+
When you use two or more headings, GitHub automatically generates a table of contents which you can access by clicking {% octicon "list-unordered" aria-label="The unordered list icon" %} within the file header. Each heading title is listed in the table of contents and you can click a title to navigate to the selected section.
28+
29+
![Screenshot highlighting the table of contents icon](/assets/images/help/repository/headings_toc.png)
30+
31+
2732
## Styling text
2833

2934
You can indicate emphasis with bold, italic, or strikethrough text in comment fields and `.md` files.

0 commit comments

Comments
 (0)