1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-17 11:35:32 -04:00

markdownify image captions

This commit is contained in:
2019-12-19 13:04:02 -05:00
parent 7b3f045231
commit 2465903ff5
22 changed files with 79 additions and 74 deletions

View File

@@ -31,9 +31,9 @@
<figure>
<picture>
<img src="{{ $image.Permalink }}" width="{{ $displayWidth }}" height="{{ $displayHeight }}"
alt="{{ . | plainify | safeHTMLAttr }}" title="{{ . | plainify | safeHTMLAttr }}">
alt="{{ . | markdownify | plainify | safeHTMLAttr }}" title="{{ . | markdownify | plainify | safeHTMLAttr }}">
</picture>
<figcaption>{{ . | safeHTML }}</figcaption>
<figcaption>{{ . | markdownify | safeHTML }}</figcaption>
</figure>
{{ else }}
<p><img src="{{ $image.Permalink }}" width="{{ $displayWidth }}" height="{{ $displayHeight }}"