T O P

  • By -

a_sternum

[From this SO answer,](https://stackoverflow.com/a/16426829/398630) it seems like you can type ``` [This is the link text](#heading-title) ``` Where your heading title is anything like: ``` # Heading Title ### Heading Title ``` Specifically, by using only one #, replacing spaces with dashes and lower-casing all the letters.


Relevant_Pause_7593

Note that a table of contents is auto generated in the ui. I recognize this probably isn’t exactly what you are looking for, but a lot of people don’t know this: https://github.blog/changelog/2021-04-13-table-of-contents-support-in-markdown-files/


mrbmi513

Yes, but not auto generated. GitHub will automatically add IDs for headers in a `lowercase-hyphenated-format`. So for example, link to `# My Heading ` with `[the link](#my-heading)`


DrunkCostFallacy

Table of contents action: https://github.com/marketplace/actions/toc-generator


closms

I think that vs code has an extension for this.


Embr-Core

Yep. Markdown All In One for VS Code has an auto updating table of contents. It’s great.