Create render-link.html

Markdown render hooks for links
This commit is contained in:
Aziz 2022-09-15 18:38:30 +07:00 • committed by GitHub
commit cff71bf5f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1 @@
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if strings.HasPrefix .Destination "http" }} target="_blank" rel="nofollow noopener noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>