mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
Merge pull request #2465 from ZhenShuo2021/feat/timeline-md
✨ Feat(timeline): support markdown content
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user