mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-17 22:54:37 -04:00
Manually specifying heading anchors in Markdown content
Fixes https://github.com/gohugoio/hugoDocs/issues/393
This commit is contained in:
parent
9d6770d2ae
commit
47614f4167
@ -109,8 +109,22 @@ Ensuring heading uniqueness across the site is accomplished with a unique identi
|
||||
/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
|
||||
[lists]: /templates/lists/
|
||||
[output formats]: /templates/output-formats/
|
||||
[shortcode]: /content-management/shortcodes/
|
||||
[bfext]: /formats/#blackfriday-extensions
|
||||
|
Loading…
x
Reference in New Issue
Block a user