fix: remove relURL function from render-link template

This commit is contained in:
Robert Kaussow 2021-02-21 21:56:26 +01:00
parent 7d028ddc71
commit e748a7dbc0
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

@ -1,2 +1,2 @@
{{ $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>
{{- $raw := or (hasPrefix .Text "<img") (hasPrefix .Text "<figure") -}}
<a class="gdoc-markdown__link{{ if $raw }}--raw{{ end }}" href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}>{{ .Text | safeHTML }}</a>