2021-02-21 05:04:40 -08:00
|
|
|
{{ $raw := or (hasPrefix .Text "<img") (hasPrefix .Text "<figure") }}
|
|
|
|
<a class="gdoc-markdown__link{{ if $raw }}--raw{{ end }}" href="{{ .Destination | safeURL | relURL }}"{{ with .Title}} title="{{ . }}"{{ end }}>{{ .Text | safeHTML }}</a>
|