summaryrefslogtreecommitdiffstats
path: root/docs/content/en/render-hooks
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/render-hooks')
-rwxr-xr-xdocs/content/en/render-hooks/passthrough.md2
-rwxr-xr-xdocs/content/en/render-hooks/tables.md12
2 files changed, 11 insertions, 3 deletions
diff --git a/docs/content/en/render-hooks/passthrough.md b/docs/content/en/render-hooks/passthrough.md
index 3b82116e6..f4b954c24 100755
--- a/docs/content/en/render-hooks/passthrough.md
+++ b/docs/content/en/render-hooks/passthrough.md
@@ -95,7 +95,7 @@ Hugo populates the `Attributes` map for _block_ passthrough elements. Markdown a
###### Type
-(`bool`) The passthrough element type, either `block` or `inline`.
+(`string`) The passthrough element type, either `block` or `inline`.
## Example
diff --git a/docs/content/en/render-hooks/tables.md b/docs/content/en/render-hooks/tables.md
index 41eadad7b..b8a792747 100755
--- a/docs/content/en/render-hooks/tables.md
+++ b/docs/content/en/render-hooks/tables.md
@@ -82,7 +82,11 @@ In its default configuration, Hugo renders Markdown tables according to the [Git
{{- range .THead }}
<tr>
{{- range . }}
- <th {{ printf "style=%q" (printf "text-align: %s" .Alignment) | safeHTMLAttr }}>
+ <th
+ {{- with .Alignment }}
+ {{- printf " style=%q" (printf "text-align: %s" .) | safeHTMLAttr }}
+ {{- end -}}
+ >
{{- .Text -}}
</th>
{{- end }}
@@ -93,7 +97,11 @@ In its default configuration, Hugo renders Markdown tables according to the [Git
{{- range .TBody }}
<tr>
{{- range . }}
- <td {{ printf "style=%q" (printf "text-align: %s" .Alignment) | safeHTMLAttr }}>
+ <td
+ {{- with .Alignment }}
+ {{- printf " style=%q" (printf "text-align: %s" .) | safeHTMLAttr }}
+ {{- end -}}
+ >
{{- .Text -}}
</td>
{{- end }}