Skip to content

Instantly share code, notes, and snippets.

@opklnm102
Forked from asabaylus/gist:3071099
Created October 6, 2017 09:11
Show Gist options
  • Select an option

  • Save opklnm102/14596d267a242d05703be5e51af4a915 to your computer and use it in GitHub Desktop.

Select an option

Save opklnm102/14596d267a242d05703be5e51af4a915 to your computer and use it in GitHub Desktop.
Github Markdown Heading Anchors

Anchors in Markdown

To create an anchor to a heading in github flavored markdown. Add - characters between each word in the heading and wrap the value in parens (#some-markdown-heading) so your link should look like so:

[create an anchor](#anchors-in-markdown)

@opklnm102
Copy link
Author

opklnm102 commented Oct 6, 2017

Take me there
Take me where

there_you_go

Take me there

@opklnm102
Copy link
Author

opklnm102 commented Oct 6, 2017

I wonder how to create anchor to a sub-heading. For example:

Head 1

head-2

and I want to add anchor to head 2. I tried this but not working:
create an anchor

@opklnm102
Copy link
Author

Heading Link

[Section I Want]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment