diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-06-16 07:22:11 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-06-16 07:22:11 +0200 |
commit | 604cfffc5b3903bc4596bf541bf4b970ea478525 (patch) | |
tree | 0e7f7ec4c82b920a8392ac50c7705cd7f3ab0a3a /docs/content/en/functions | |
parent | d863dde6c653700fb540d7e4dd6605c7186f59da (diff) | |
parent | 475f87f685439de0f907a9ffc29bfd1361eb1c59 (diff) |
Merge commit '475f87f685439de0f907a9ffc29bfd1361eb1c59'
Diffstat (limited to 'docs/content/en/functions')
-rw-r--r-- | docs/content/en/functions/anchorize.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/en/functions/anchorize.md b/docs/content/en/functions/anchorize.md index b5bd22e07..5530e193b 100644 --- a/docs/content/en/functions/anchorize.md +++ b/docs/content/en/functions/anchorize.md @@ -13,7 +13,7 @@ workson: [] relatedfuncs: [humanize] --- -If [Goldmark](https://gohugo.io/getting-started/configuration-markup#goldmark) is set as `defaultMarkdownHandler`, the sanitizing logic adheres to the setting [`markup.goldmark.parser.autoHeadingIDType`](https://gohugo.io/getting-started/configuration-markup#goldmark). If [Blackfriday](https://gohugo.io/getting-started/configuration-markup#blackfriday) is set as `defaultMarkdownHandler`, this template function uses the [`SanitizedAnchorName` logic from Blackfriday](https://github.com/russross/blackfriday#sanitized-anchor-names) (the same applies when `markup.goldmark.parser.autoHeadingIDType` is set to `blackfriday`). +If [Goldmark](https://gohugo.io/getting-started/configuration-markup#goldmark) is set as `defaultMarkdownHandler`, the sanitizing logic adheres to the setting [`markup.goldmark.parser.autoHeadingIDType`](https://gohugo.io/getting-started/configuration-markup#goldmark). Since the `defaultMarkdownHandler` and this template function use the same sanitizing logic, you can use the latter to determine the ID of a header for linking with anchor tags. |