Skip to content

Commit bccd69e

Browse files
Renders lead text as markdown in more places.
1 parent cf8a4cd commit bccd69e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

themes/hextra/layouts/docs/list.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<div class="content">
99
<h1>{{ .Title }}</h1>
1010

11-
<p class="lead italic">{{ .Params.Lead }}</p>
11+
<p class="lead italic">{{ .Params.Lead | markdownify }}</p>
1212

1313
{{ .Content }}
1414

@@ -21,9 +21,9 @@ <h1>{{ .Title }}</h1>
2121
</span>
2222
<div class="hextra-card-subtitle hx-line-clamp-3 hx-text-sm hx-font-normal hx-text-gray-500 dark:hx-text-gray-400 hx-px-4 hx-mb-4 hx-mt-2">
2323
{{ if .Params.lead }}
24-
{{ .Params.lead | truncate 200 }}
24+
{{ .Params.lead | truncate 200 | markdownify }}
2525
{{ else }}
26-
{{ .Summary | truncate 200 }}
26+
{{ .Summary | truncate 200 | markdownify }}
2727
{{ end }}
2828
</div>
2929
</a>

0 commit comments

Comments
 (0)