mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +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`.
|
||||
*/}}
|
||||
{{ $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…
Reference in a new issue