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

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

No files matched your search

+6 -1
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>