From 83aa99c62ffa8d79c2781114cbece47f7dcc36a7 Mon Sep 17 00:00:00 2001 From: Ilya Kuznetsov Date: Mon, 24 Feb 2025 18:27:32 +0100 Subject: [PATCH] Update links --- bundle/docsgen/markdown.go | 2 +- bundle/docsgen/testdata/anchors.md | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/bundle/docsgen/markdown.go b/bundle/docsgen/markdown.go index f5e4ed05f..a3a8c6ef1 100644 --- a/bundle/docsgen/markdown.go +++ b/bundle/docsgen/markdown.go @@ -97,7 +97,7 @@ func formatDescription(a attributeNode) string { } else if s != "" { s += ". " } - s += fmt.Sprintf("See [_](#%s).", cleanAnchor(a.Link)) + s += fmt.Sprintf("See [\\_](#%s).", cleanAnchor(a.Link)) } return s } diff --git a/bundle/docsgen/testdata/anchors.md b/bundle/docsgen/testdata/anchors.md index 0145d8cc9..872649d7c 100644 --- a/bundle/docsgen/testdata/anchors.md +++ b/bundle/docsgen/testdata/anchors.md @@ -8,16 +8,17 @@ This is a description -.. list-table:: - :header-rows: 1 +:::list-table - * - Key - - Type - - Description +- - Key + - Type + - Description - * - `my_attribute` - - Map - - Desc with link. See [_](#some_fieldnamemy_attribute). +- - `my_attribute` + - Map + - Desc with link. See [\_](#some_fieldnamemy_attribute). + +::: ### some_field.\.my_attribute