From 85f3fb0de15f736d4c6e6784e578941b2bae57b1 Mon Sep 17 00:00:00 2001 From: Casey Link Date: Wed, 15 May 2024 16:53:02 +0200 Subject: [PATCH] gig emails: render markdown in some fields fixes #74 --- src/clj/app/email/templates.clj | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/clj/app/email/templates.clj b/src/clj/app/email/templates.clj index 6c8ec60..8bc1fde 100644 --- a/src/clj/app/email/templates.clj +++ b/src/clj/app/email/templates.clj @@ -69,12 +69,13 @@ (when end-time [:li (tr [:gig/end-time]) ": " (ui/format-time end-time)]) (when location - [:li (tr [:gig/location]) ": " location]) + [:li (tr [:gig/location]) ": " (markdown/render-one-line location)]) (when-not (str/blank? pay-deal) [:li (tr [:gig/pay-deal]) ": " pay-deal])] (when more-details - [:p (tr [:gig/more-details]) ": " [:br] more-details])]) + [:p (tr [:gig/more-details]) ": " [:br] + (markdown/render more-details)])]) (defn template-snippet-gig-details-plain [{:keys [tr env]} {:gig/keys [date end-date title set-time call-time end-time status location more-details pay-deal gig-type]}] (selmer/render