From 91dacbdfc07245079871295ae0a37018c36885c2 Mon Sep 17 00:00:00 2001 From: tcx4c70 Date: Mon, 21 Feb 2022 19:24:27 +0000 Subject: [PATCH] Don't add extra

to markdown contains ordered/unordered list in 'details' of section experience/details-list --- layouts/partials/markdown.html | 2 +- layouts/partials/section-experience.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/markdown.html b/layouts/partials/markdown.html index e8e0513..1c0988f 100644 --- a/layouts/partials/markdown.html +++ b/layouts/partials/markdown.html @@ -1,5 +1,5 @@ {{ $markdown := . | markdownify }} -{{ if strings.Contains $markdown "

" }} +{{ if or (strings.Contains $markdown "

") (strings.Contains $markdown "

  • ") }} {{ $markdown }} {{ else }}

    {{ $markdown }}

    diff --git a/layouts/partials/section-experience.html b/layouts/partials/section-experience.html index 2d26316..2fa580a 100644 --- a/layouts/partials/section-experience.html +++ b/layouts/partials/section-experience.html @@ -8,7 +8,7 @@ {{ .date }} {{ if .details }} -

    {{ .details | markdownify }}

    + {{- partial "markdown" .details }} {{ end }} {{ end }}