Skip to content

Instantly share code, notes, and snippets.

@d0zingcat
Last active December 1, 2017 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d0zingcat/ea18249efc1c3a5b34cba0308284306a to your computer and use it in GitHub Desktop.
Save d0zingcat/ea18249efc1c3a5b34cba0308284306a to your computer and use it in GitHub Desktop.
markdown notes
  1. Anchor at current page Github automatically parses anchor tags out of your headers. So you can do the following:
[Foo](#foo)
### Foo

In the above case, the Foo header has generated an anchor tag with the name foo

Note: just one # for all heading sizes, no space between # and anchor name, anchor tag names must be lowercase, and delimited by dashes if multi-word. Just like this:

[click on this link](#my-multi-word-header)

### My Multi Word Header

Or this could be realized by the following approach:

[click on this link](#\anchor)

<a name="anchor">
this section will be jumped to after click on the link above.
</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment