2021-02-21 21:16:11 +01:00
|
|
|
{{- $raw := or (hasPrefix .Text "<img") (hasPrefix .Text "<figure") -}}
|
2021-05-23 15:09:01 +02:00
|
|
|
<a class="gblog-markdown__link{{ if $raw }}--raw{{ end }}" href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}>{{ .Text | safeHTML }}</a>
|
2021-05-23 14:57:55 +02:00
|
|
|
{{- /* Drop trailing newlines */ -}}
|