Manually specifying heading anchors in Markdown content

Fixes https://github.com/gohugoio/hugoDocs/issues/393
This commit is contained in:
Kaushal Modi 2018-03-07 15:17:35 -05:00
parent 9d6770d2ae
commit 47614f4167

View File

@ -109,8 +109,22 @@ Ensuring heading uniqueness across the site is accomplished with a unique identi
/content-management/cross-references/#hugo-heading-anchors:77cd9ea530577debf4ce0f28c8dca242 /content-management/cross-references/#hugo-heading-anchors:77cd9ea530577debf4ce0f28c8dca242
``` ```
### Manually Specifying Anchors
For Markdown content files, if the `headerIds` [Blackfriday extension][bfext] is
enabled (which it is by default), user can manually specify the anchor for any
heading.
Few examples:
```
## Alpha 101 {#alpha}
## Version 1.0 {#version-1-dot-0}
```
[built-in Hugo shortcodes]: /content-management/shortcodes/#using-the-built-in-shortcodes [built-in Hugo shortcodes]: /content-management/shortcodes/#using-the-built-in-shortcodes
[lists]: /templates/lists/ [lists]: /templates/lists/
[output formats]: /templates/output-formats/ [output formats]: /templates/output-formats/
[shortcode]: /content-management/shortcodes/ [shortcode]: /content-management/shortcodes/
[bfext]: /formats/#blackfriday-extensions