2021-02-21 12:56:26 -08:00
|
|
|
{{- $raw := or (hasPrefix .Text "<img") (hasPrefix .Text "<figure") -}}
|
2022-01-06 04:58:10 -08:00
|
|
|
<a
|
|
|
|
class="gdoc-markdown__link{{ if $raw }}--raw{{ end }}"
|
|
|
|
href="{{ .Destination | safeURL }}"
|
|
|
|
{{ with .Title }}title="{{ . }}"{{ end }}
|
|
|
|
>{{ .Text | safeHTML }}</a
|
|
|
|
>
|
2021-02-24 07:37:12 -08:00
|
|
|
{{- /* Drop trailing newlines */ -}}
|