If you need a custom ToC in addition to the auto-generated ToC by GitHub, you can use links to your headings. Replace spaces with a dash -
and remove dots .
like this:
This is an example how you can build a custom wiki using markdown. It does not have a sidebar and footer. But is has the advantage that you can work in pull requests on the changes and you have the wiki close to your code (for auto generation, or to do modifications alongside with your code changes).
The are different tools like VS Code extensions that can auto-generate the ToC if you like.
Summary of the topic.
Description of Section 1.
Example
nextWhenVisible() {
// Don't call next when the page isn't visible
// or the carousel or its parent isn't visible
if (!document.hidden && isVisible(this._element)) {
this.next()
}
}
Description of Section 2.
Example
nextWhenVisible() {
// Don't call next when the page isn't visible
// or the carousel or its parent isn't visible
if (!document.hidden && isVisible(this._element)) {
this.next()
}
}
Description of Subsection 1 in Section 2.
Example
nextWhenVisible() {
// Don't call next when the page isn't visible
// or the carousel or its parent isn't visible
if (!document.hidden && isVisible(this._element)) {
this.next()
}
}
Description of Subsection 2 in Section 2.
Example
nextWhenVisible() {
// Don't call next when the page isn't visible
// or the carousel or its parent isn't visible
if (!document.hidden && isVisible(this._element)) {
this.next()
}
}
Description of Section 3.
Example
nextWhenVisible() {
// Don't call next when the page isn't visible
// or the carousel or its parent isn't visible
if (!document.hidden && isVisible(this._element)) {
this.next()
}
}
Description of Subsection 1 in Section 3.
Example
nextWhenVisible() {
// Don't call next when the page isn't visible
// or the carousel or its parent isn't visible
if (!document.hidden && isVisible(this._element)) {
this.next()
}
}
Description of Subsection 2 in Section 3.
Example
nextWhenVisible() {
// Don't call next when the page isn't visible
// or the carousel or its parent isn't visible
if (!document.hidden && isVisible(this._element)) {
this.next()
}
}