You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/render-hooks/images.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ block = true
73
73
74
74
###### Text
75
75
76
-
(`string`) The image description.
76
+
(`template.HTML`) The image description.
77
77
78
78
###### Title
79
79
@@ -143,7 +143,7 @@ The embedded image render hook is automatically enabled for multilingual single-
143
143
[duplication of shared page resources]: /getting-started/configuration-markup/#duplicateresourcefiles
144
144
{{% /note %}}
145
145
146
-
The embedded image render hook resolves internal Markdown destinations by looking for a matching [page resource], falling back to a matching [global resource]. Remote destinations are passed through, and the render hook will not throw an error or warning if it is unable to resolve a destination.
146
+
The embedded image render hook resolves internal Markdown destinations by looking for a matching [page resource], falling back to a matching [global resource]. Remote destinations are passed through, and the render hook will not throw an error or warning if unable to resolve a destination.
Copy file name to clipboardExpand all lines: content/en/render-hooks/links.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ Link render hook templates receive the following context:
54
54
55
55
###### Text
56
56
57
-
(`string`) The link description.
57
+
(`template.HTML`) The link description.
58
58
59
59
###### Title
60
60
@@ -74,7 +74,7 @@ In its default configuration, Hugo renders Markdown links according to the [Comm
74
74
<a href="{{ .Destination | safeURL }}"
75
75
{{- with .Title }} title="{{ . }}"{{ end -}}
76
76
>
77
-
{{- with .Text | safeHTML }}{{ . }}{{ end -}}
77
+
{{- with .Text }}{{ . }}{{ end -}}
78
78
</a>
79
79
{{- /* chomp trailing newline */ -}}
80
80
{{< /code >}}
@@ -87,7 +87,7 @@ To include a `rel` attribute set to `external` for external links:
87
87
{{- with .Title }} title="{{ . }}"{{ end -}}
88
88
{{- if $u.IsAbs }} rel="external"{{ end -}}
89
89
>
90
-
{{- with .Text | safeHTML }}{{ . }}{{ end -}}
90
+
{{- with .Text }}{{ . }}{{ end -}}
91
91
</a>
92
92
{{- /* chomp trailing newline */ -}}
93
93
{{< /code >}}
@@ -113,7 +113,7 @@ The embedded link render hook is automatically enabled for multilingual single-h
113
113
[duplication of shared page resources]: /getting-started/configuration-markup/#duplicateresourcefiles
114
114
{{% /note %}}
115
115
116
-
The embedded link render hook resolves internal Markdown destinations by looking for a matching page, falling back to a matching [page resource], then falling back to a matching [global resource]. Remote destinations are passed through, and the render hook will not throw an error or warning if it is unable to resolve a destination.
116
+
The embedded link render hook resolves internal Markdown destinations by looking for a matching page, falling back to a matching [page resource], then falling back to a matching [global resource]. Remote destinations are passed through, and the render hook will not throw an error or warning if unable to resolve a destination.
0 commit comments