Merge branch 'master' into 'master'
Don't add extra <p> to markdown contains ordered/unordered list in 'details' of section experience/details-list See merge request mertbakir/resume-a4!4
This commit is contained in:
commit
54e4d064bd
2 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
{{ $markdown := . | markdownify }}
|
||||
{{ if strings.Contains $markdown "<p>" }}
|
||||
{{ if or (strings.Contains $markdown "<p>") (strings.Contains $markdown "<li>") }}
|
||||
{{ $markdown }}
|
||||
{{ else }}
|
||||
<p>{{ $markdown }}</p>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<span class="date">{{ .date }}</span>
|
||||
</div>
|
||||
{{ if .details }}
|
||||
<p>{{ .details | markdownify }}</p>
|
||||
{{- partial "markdown" .details }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue