Replace last usages of markdownify with .RenderString.
This commit is contained in:
parent
3ca11ccb8b
commit
001f71cacd
4 changed files with 8 additions and 8 deletions
|
|
@ -36,6 +36,6 @@
|
|||
<source src="{{ $src }}" {{ with $type }}type="{{ . }}"{{ end }}>
|
||||
</audio>
|
||||
{{ with $caption -}}
|
||||
<figcaption>{{ . | markdownify }}</figcaption>
|
||||
<figcaption>{{ . | .Page.RenderString }}</figcaption>
|
||||
{{ end -}}
|
||||
</figure>
|
||||
|
|
|
|||
|
|
@ -100,8 +100,8 @@
|
|||
{{ if or $title $caption $attr -}}
|
||||
<figcaption>
|
||||
{{ with $title }}<strong>{{ . }}</strong><br>{{ end -}}
|
||||
{{- $caption | markdownify }}{{ if and $caption $attr }} {{ end -}}
|
||||
{{ with $attrlink }}<a href="{{ . }}">{{ end }}{{ $attr | markdownify }}{{ if $attrlink }}</a>{{ end -}}
|
||||
{{- $caption | .Page.RenderString }}{{ if and $caption $attr }} {{ end -}}
|
||||
{{ with $attrlink }}<a href="{{ . }}">{{ end }}{{ $attr | .Page.RenderString }}{{ if $attrlink }}</a>{{ end -}}
|
||||
</figcaption>
|
||||
{{ end -}}
|
||||
</figure>
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
{{- if $link }}</a>{{ end }}
|
||||
{{ if $caption -}}
|
||||
<figcaption>
|
||||
{{ $caption | markdownify -}}
|
||||
{{ $caption | .Page.RenderString -}}
|
||||
</figcaption>
|
||||
</figure>
|
||||
{{ end -}}
|
||||
|
|
|
|||
|
|
@ -62,6 +62,6 @@
|
|||
<source src="{{ $src }}" {{ with $type }}type="{{ . }}"{{ end }}>
|
||||
</video>
|
||||
{{ with $caption -}}
|
||||
<figcaption>{{ . | markdownify }}</figcaption>
|
||||
<figcaption>{{ . | .Page.RenderString }}</figcaption>
|
||||
{{ end -}}
|
||||
</figure>
|
||||
|
|
|
|||
Loading…
Reference in a new issue