14 lines
403 B
HTML
14 lines
403 B
HTML
|
{{- if .IsNamedParams }}
|
||
|
{{- if eq (.Get "type") "note" "warn" "err" "tip" }}
|
||
|
<aside class="admonition {{ .Get "type" }}">
|
||
|
<p>{{- .Inner | markdownify -}}</p>
|
||
|
</aside>
|
||
|
{{- else }}
|
||
|
{{ errorf "param 'type' must be one of note, warn, or err: %s" .Position }}
|
||
|
{{- end }}
|
||
|
{{- else }}
|
||
|
<aside class="admonition note">
|
||
|
<p>{{- .Inner | markdownify -}}</p>
|
||
|
</aside>
|
||
|
{{- end }}
|