Remove unintended whitespaces from markdown links
This commit is contained in:
parent
a3059fe4f7
commit
bccdeca767
2 changed files with 6 additions and 6 deletions
|
@ -1,8 +1,8 @@
|
|||
{{ if .Page.Site.Params.BookPortableLinks }}
|
||||
{{- if .Page.Site.Params.BookPortableLinks -}}
|
||||
{{- template "portable-image" . -}}
|
||||
{{ else }}
|
||||
{{- else -}}
|
||||
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title }}title="{{ . }}"{{ end }}/>
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "portable-image" -}}
|
||||
{{- $isRemote := or (in .Destination "://") (strings.HasPrefix .Destination "//") }}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{{ if .Page.Site.Params.BookPortableLinks }}
|
||||
{{- if .Page.Site.Params.BookPortableLinks -}}
|
||||
{{- template "portable-link" . -}}
|
||||
{{ else }}
|
||||
{{- else -}}
|
||||
<a href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}>{{ .Text | safeHTML }}</a>
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "portable-link" -}}
|
||||
{{- $destination := .Destination }}
|
||||
|
|
Loading…
Reference in a new issue