Merge pull request #158 from nunocoracao/157-links-rendering-with-extra-white-space

removed extra whitespace from links
This commit is contained in:
Nuno Coração 2022-10-25 23:47:23 +01:00 committed by GitHub
commit 3d7ac720ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,2 @@
<a href="{{ .Destination | safeURL }}" {{ with .Title}} title="{{ . }}"{{ end }} {{ if or (strings.HasPrefix .Destination "http:") (strings.HasPrefix .Destination "https:") }} target="_blank"{{ end }}>
{{ .Text | safeHTML }}
</a>
{{ .Text | safeHTML }}</a>