mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-21 00:48:38 +01:00
Link to HTML anchors, where they exist
This commit is contained in:
parent
5f50277f13
commit
f0ffaff439
|
|
@ -96,6 +96,9 @@
|
||||||
This means we can write things like `EventFilter` rather than `object`.
|
This means we can write things like `EventFilter` rather than `object`.
|
||||||
*/}}
|
*/}}
|
||||||
{{ $type = .title }}
|
{{ $type = .title }}
|
||||||
|
{{ if .anchor }}
|
||||||
|
{{ $type = printf "<a href=\"#%s\">%s</a>" (htmlEscape .anchor) (htmlEscape $type) | safeHTML }}
|
||||||
|
{{ end }}
|
||||||
{{ else if reflect.IsMap .additionalProperties }}
|
{{ else if reflect.IsMap .additionalProperties }}
|
||||||
{{/*
|
{{/*
|
||||||
If the property uses `additionalProperties` to describe its
|
If the property uses `additionalProperties` to describe its
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue