fix: fix nested hint rendering issues (#391)

This commit is contained in:
Robert Kaussow 2022-04-28 11:26:45 +02:00 committed by GitHub
parent d724618457
commit 0a5af2e8da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,12 +5,12 @@
<blockquote class="gdoc-hint {{ $type | lower }}">
<div class="gdoc-hint__title flex align-center">
{{ with $icon }}
{{- with $icon -}}
<svg class="gdoc-icon {{ . }}"><use xlink:href="#{{ . }}"></use></svg>
<span>{{ $title }}</span>
{{ else }}
{{- else -}}
<i class="fa {{ $type | lower }}" title="{{ $title }}"></i>
{{ end }}
{{- end -}}
</div>
<div class="gdoc-hint__text">{{ .Inner | $.Page.RenderString }}</div>
</blockquote>