Link to HTML anchors, where they exist

This commit is contained in:
Richard van der Hoff 2023-04-06 02:07:03 +01:00
parent 5f50277f13
commit f0ffaff439

View file

@ -96,6 +96,9 @@
This means we can write things like `EventFilter` rather than `object`.
*/}}
{{ $type = .title }}
{{ if .anchor }}
{{ $type = printf "<a href=\"#%s\">%s</a>" (htmlEscape .anchor) (htmlEscape $type) | safeHTML }}
{{ end }}
{{ else if reflect.IsMap .additionalProperties }}
{{/*
If the property uses `additionalProperties` to describe its