hugo: handle multiline flag descriptions

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson committed 2023-12-13 21:14:31 +01:00
1 parent b2740a4956
commit 72725b7708
1 file changed
+2 -1
+2 -1
View File
@@ -113,7 +113,8 @@
{{ partial "components/badge.html" (dict "color" "blue" "content" "Swarm") }}
{{ end }}
{{ if .description }}
{{ $.RenderString .description }}
{{/* replace newlines in long desc with break tags */}}
{{ markdownify (strings.Replace .description "\n" "<br>") }}
{{ end }}
</td>
</tr>