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
  3. I found this article interesting because of the introduction. I was looking forward to learning how many future posts you plan to share in the future, which reflects your desire to share such great content. You can view my latest article on the following link. Please visit me CPS Tester. Thank you.

    ReplyDelete

Post a Comment

Popular posts from this blog

[Azure Websites PHP] Cross Domain request results in blank response page after Preflight HTTP OPTIONS

[Magento] Create Contact Form with Dynamic Recipient