blob: 3558a0247c0d57591201f3b5a634032496814ce0 (
plain)
1
2
3
4
5
6
7
8
9
|
{{- $text := default "mark" (.Get "text" | default (.Get 0)) -}}
{{- $title := default "highlighted text" (.Get "title" | default (.Get 1)) -}}
{{- if gt (len .Inner) 1 -}}
{{- $text = .Inner -}}
{{- end -}}
<mark title="{{- $title -}}">{{- $text | markdownify -}}</mark>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
|