From f0ffaff43965b642406b6e8d2a5410b50944017d Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 6 Apr 2023 02:07:03 +0100 Subject: [PATCH] Link to HTML anchors, where they exist --- layouts/partials/openapi/render-object-table.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/partials/openapi/render-object-table.html b/layouts/partials/openapi/render-object-table.html index 67e3dc01..e76d6172 100644 --- a/layouts/partials/openapi/render-object-table.html +++ b/layouts/partials/openapi/render-object-table.html @@ -96,6 +96,9 @@ This means we can write things like `EventFilter` rather than `object`. */}} {{ $type = .title }} + {{ if .anchor }} + {{ $type = printf "%s" (htmlEscape .anchor) (htmlEscape $type) | safeHTML }} + {{ end }} {{ else if reflect.IsMap .additionalProperties }} {{/* If the property uses `additionalProperties` to describe its