docs: Document the new autoHeadingIDType setting

See #6707
See #6616
This commit is contained in:
Bjørn Erik Pedersen 2020-01-05 12:07:36 +01:00
parent 81b7e48a55
commit d62ede8e9e
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -38,6 +38,9 @@ unsafe
typographer typographer
: This extension substitutes punctuations with typographic entities like [smartypants](https://daringfireball.net/projects/smartypants/). : This extension substitutes punctuations with typographic entities like [smartypants](https://daringfireball.net/projects/smartypants/).
autoHeadingIDType ("github") {{< new-in "0.62.2" >}}
: The strategy used for creating auto IDs (anchor names). Available types are `github`, `github-ascii` and `blackfriday`. `github` produces GitHub-compatible IDs, `github-ascii` will drop any non-Ascii characters after accent normalization, and `blackfriday` will make the IDs work as with [Blackfriday](#blackfriday), the default Markdown engine before Hugo 0.60. Note that if Goldmark is your default Markdown engine, this is also the strategy used in the [anchorize](/functions/anchorize/) template func.
### Blackfriday ### Blackfriday