It would be good if HTML anchor tags were automatically created for markdown headers. This is a feature of github markdown.
REPO always
STEPS
Go to http://gohugo.io/overview/quickstart
Click “upgrade”
ACTUAL RESULT
At the top of http://gohugo.io/overview/installing
EXPECTED RESULT
At the “upgrade” section of the page.
ADDITIONAL DETAILS
"if the Header has multiple words, like “My Header”, you can use [Link to my Header](#my-header)
. This works at least in GitHub flavor." from stackoverflow.com/questions/6695439/how-do-you-create-link-to-a-named-anchor-in-multimarkdown
I think that you should follow this issue:
opened 09:21PM - 05 Aug 14 UTC
closed 02:37PM - 28 Oct 14 UTC
It would be really nice is to have the anchor URLs be generated as a lowercase, hyphenated version of the title...
I have put a pair of PRs in on blackfriday that will make this work properly with a small change to hugo.
The PR was accepted into blackfriday. I have implemented a naïve version for Hugo:
gohugoio:master
← halostatue:auto-header-ids
opened 05:14AM - 29 Oct 14 UTC
There are caveats to this; even though it’s a one-line change and a generally good idea, I’m not sure that I would want to merge it as is. Please read the PR for details.