Link to HTML anchors, where they exist

rav/links_for_object_defs
Richard van der Hoff 1 year ago
parent 5f50277f13
commit f0ffaff439

@ -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

Loading…
Cancel
Save