Be less aggressive in removing newlines.

This commit is contained in:
wermos 2024-06-03 22:45:22 +05:30
parent bb435aded7
commit 581aba3359
No known key found for this signature in database
GPG key ID: 8CBC132DB3E00784
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -44,7 +44,7 @@
<img class="my-0 rounded-md{{ with $nozoom }} nozoom{{ end }}{{ with $class }} {{ . }}{{ end }}" src="{{ $url.String }}" alt="{{ $altText }}" /> <img class="my-0 rounded-md{{ with $nozoom }} nozoom{{ end }}{{ with $class }} {{ . }}{{ end }}" src="{{ $url.String }}" alt="{{ $altText }}" />
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }} {{ with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }}
{{- if $href }}</a>{{ end }} {{ if $href }}</a>{{ end }}
</figure> </figure>
{{- end -}} {{- end -}}