feat(timeline): support markdown content

This commit is contained in:
ZhenShuo Leo committed 2025-09-12 20:25:35 +08:00
1 parent 9cc808ea93
commit e355715a3b
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>