File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 15
15
{{- $textColor100 := index (dict "default" "text-raven-100" "info" "text-blue-100" "warn" "text-orange-100" "alert" "text-red-100") $type -}}
16
16
{{- $textColor700 := index (dict "default" "text-raven-700" "info" "text-blue-700" "warn" "text-orange-700" "alert" "text-red-700") $type -}}
17
17
< div class ="flex items-center justify-center font-content-sans rounded {{ $bgColor100 }} px-4 py-4 " role ="alert ">
18
- < span class ="text-xs font-bold uppercase leading-none rounded-full {{ $textColor100 }} {{ $bgColor500 }} px-2 py-1 mr-3 "> {{ $badge }}</ span >
19
- < span class ="font-semibold {{ $textColor700 }} "> {{ .message | markdownify }}</ span >
18
+ < span class ="text-xs font-bold uppercase leading-none rounded-full {{ $textColor100 }} {{ $bgColor500 }} px-2 py-1 mr-3 "> {{ $badge | safeHTML }}</ span >
19
+ < span class ="font-semibold {{ $textColor700 }} "> {{ .message | markdownify | safeHTML }}</ span >
20
20
</ div >
Original file line number Diff line number Diff line change 28
28
{{- with $svg }}
29
29
{{ . | safeHTML }}
30
30
{{- end }}
31
- < span > {{ $text }}</ span >
31
+ < span > {{ $text | safeHTML }}</ span >
32
32
</ a >
33
33
{{- else }}
34
34
< button class ="{{ $class }} " role ="button ">
35
35
{{- with $svg }}
36
36
{{ . | safeHTML }}
37
37
{{- end }}
38
- < span > {{ $text }}</ span >
38
+ < span > {{ $text | safeHTML }}</ span >
39
39
</ button >
40
40
{{- end }}
Original file line number Diff line number Diff line change 46
46
{{- if or (or (.title) (.caption)) (.attr) }}
47
47
< figcaption class ="{{ $captionClass }} ">
48
48
{{- with (.title) }}
49
- < h4 > {{ . }}</ h4 >
49
+ < h4 > {{ . | safeHTML }}</ h4 >
50
50
{{- end }}
51
51
{{- if or (.caption) (.attr) }}
52
- < p > {{- .caption | markdownify -}}
52
+ < p > {{- .caption | markdownify | safeHTML -}}
53
53
{{ if .attr }} {{ end }}{{/* yup, just a space */}}
54
54
{{- with .attrlink }}< a href ="{{ . }} "> {{- end -}}
55
- {{ .attr | markdownify }}
55
+ {{ .attr | markdownify | safeHTML }}
56
56
{{- if .attrlink }}</ a > {{- end -}}
57
57
</ p >
58
58
{{- end }}
You can’t perform that action at this time.
0 commit comments