blob: 122a521e74e5743b6df060ea85fd76b2fe3801f6 (
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 -}}</mark>
{{- /* This comment removes trailing newlines and white spaces. */ -}}
|