GitHub Wiki - Anchor link for page headers

Example "Table of Content" on "markdown-here"


Was trying to do a table of content in Github Wiki just now and realize there aren't much guide on that. After searching for a while, I found this comment on Github that shows how to do it.

1. Add anchor for the header that you want to link to
# <a name="heading1"/> Heading 1

2. Add the link to the anchor
[link to heading 1](#wiki-heading1)


Example usage:

Comments

  1. Thanks dude, very useful!

    ReplyDelete
  2. Do you know by chance if there's a tool to automatically generate table of content based on headers, but for a page only? Googling mostly brings me to solution how to generate ToC for the whole wiki repo, but I need just for current page.

    ReplyDelete

Post a Comment

Popular posts from this blog

225019099301.apps.googleusercontent.com

Backup MySQL to Azure Storage in 30 Seconds

Generate GoDaddy SSL Certificate (.crt) for Azure Websites (.pfx)