fix: ensure render template contains no empty newlines (#76)
This commit is contained in:
parent
10e95b8c7b
commit
798a2679c1
3 changed files with 6 additions and 4 deletions
|
@ -1,2 +1,3 @@
|
|||
{{- $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>
|
||||
{{- /* Drop trailing newlines */ -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue