Merge pull request #2465 from ZhenShuo2021/feat/timeline-md

 Feat(timeline): support markdown content
This commit is contained in:
Nuno C.
2025-09-15 23:08:24 +01:00
committed by GitHub
5 changed files with 17 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
{{ $icon := .Get "icon" | default "check" }}
{{ $md := .Get "md" | default false }}
{{ $header := .Get "header" }}
{{ $badge := .Get "badge" }}
{{ $subheader := .Get "subheader" }}
@@ -25,7 +26,11 @@
</h4>
{{ end }}
<div class="mb-6">
{{- .Inner -}}
{{ if $md }}
{{- .Inner | markdownify -}}
{{ else }}
{{- .Inner -}}
{{ end }}
</div>
</div>
</div>