{{- $rand_id := now.UnixNano -}}
{{- if not (.Get "label") -}}
{{- errorf "\n\nNo \"label\" element for {{< hover >}} tag on %s\n\n\n" .Position -}}
{{- end -}}
{{- if not (.Get "line") -}}
{{- errorf "\n\nNo \"line\" number element for {{< hover >}} tag on %s \n\n\n" .Position -}}
{{- end -}}
{{ .Inner }}
{{/*
How to Use
Create a normal code fence with triple ticks.
```shell
add a goldmark attribute to set a label for JS to key on.
```shell {label="zzxxzz"}
Put the code nomally.
```shell {label="zzxxzz"}
cat <}}kind: Provider{{< /hover >}} the command.
Provide the label of the code block and the line number to highlight.
*/}}