From b685bcb33558cee7f8c97e996874fcba4709e50c Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 15 Nov 2022 17:06:11 +0000 Subject: [PATCH] Make definition anchors more unique Stick a `definition-` on the front of the autogenerated anchors for definition blocks. This solves a problem where, for example, https://spec.matrix.org/unstable/application-service-api/#registration could refer to either the "Registration" section or the `Registration` definition therein. (These anchors are relatively recent: they were added in #1191. --- layouts/shortcodes/definition.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/definition.html b/layouts/shortcodes/definition.html index 02f2c6b0..7ed2678a 100644 --- a/layouts/shortcodes/definition.html +++ b/layouts/shortcodes/definition.html @@ -30,7 +30,7 @@ {{ $definition = partial "json-schema/resolve-refs" (dict "schema" $definition "path" $path) }} {{ $definition = partial "json-schema/resolve-allof" $definition }} -
+