Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugoDocs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Mooring <joe.mooring@veriphor.com>2022-03-19 07:04:18 +0300
committerGitHub <noreply@github.com>2022-03-19 07:04:18 +0300
commit48736447e8250e4bc8b65896759e37e39d73f761 (patch)
tree7d498b8364496e5840a6accaa1e61f464c09577a
parent2ff0bd10b075a49afb268ac088771be5720cadf8 (diff)
Update anchorize.md
Tested with v0.95.0.
-rw-r--r--content/en/functions/anchorize.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/content/en/functions/anchorize.md b/content/en/functions/anchorize.md
index 87aea2354..b5bd22e07 100644
--- a/content/en/functions/anchorize.md
+++ b/content/en/functions/anchorize.md
@@ -17,11 +17,11 @@ If [Goldmark](https://gohugo.io/getting-started/configuration-markup#goldmark) i
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.
-```
-{{anchorize "This is a header"}} → "this-is-a-header"
-{{anchorize "This is also a header"}} → "this-is-also-a-header"
-{{anchorize "main.go"}} → "main-go"
-{{anchorize "Article 123"}} → "article-123"
-{{anchorize "<- Let's try this, shall we?"}} → "let-s-try-this-shall-we"
-{{anchorize "Hello, 世界"}} → "hello-世界"
+```go-html-template
+{{ anchorize "This is a header" }} --> "this-is-a-header"
+{{ anchorize "This is also a header" }} --> "this-is-also----a-header"
+{{ anchorize "main.go" }} --> "maingo"
+{{ anchorize "Article 123" }} --> "article-123"
+{{ anchorize "<- Let's try this, shall we?" }} --> "--lets-try-this-shall-we"
+{{ anchorize "Hello, 世界" }} --> "hello-世界"
```