From 0d8058901987e8dd0cd0e28b7c4038a71e1d60d5 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 21 Feb 2021 14:04:40 +0100 Subject: [PATCH] fix: prevend wrong formatting for linked images --- layouts/_default/_markup/render-link.html | 3 ++- layouts/shortcodes/img.html | 2 +- src/sass/_markdown.scss | 16 +++++++++++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 5a540b4..a6f52a1 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1 +1,2 @@ -{{ .Text | safeHTML }} +{{ $raw := or (hasPrefix .Text "{{ .Text | safeHTML }} diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index 119086d..4ce0085 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -15,7 +15,7 @@