🐛 Fix blank blank character prefix on links

Caused by the "prettier-ignore" comment. Workaround is to remove the blank character using a comment template.
pull/823/head
1enu 2024-03-05 19:08:56 +08:00 committed by GitHub
parent 94feae3cca
commit 0407268775
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -15,4 +15,5 @@
{{ end -}}
{{ end -}}
<!-- prettier-ignore -->
<a href="{{ $link | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if $isRemote }} target="_blank" rel="noreferrer"{{ end }}>{{- .Text | safeHTML -}}</a>
{{- /* the two "-" around this block removes the newline introduced by the HTML comment above */ -}}
<a href="{{ $link | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if $isRemote }} target="_blank" rel="noreferrer"{{ end }}>{{- .Text | safeHTML -}}</a>