From 1485946ae2383134f2c3cc3cc486e5a7883e6a67 Mon Sep 17 00:00:00 2001 From: Kanji Yomoda Date: Wed, 16 Mar 2022 00:06:30 +0900 Subject: [PATCH] Use code block for attribute name (#59) --- schemamd/render.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schemamd/render.go b/schemamd/render.go index a0708de0..68568c6d 100644 --- a/schemamd/render.go +++ b/schemamd/render.go @@ -65,7 +65,7 @@ type nestedType struct { func writeAttribute(w io.Writer, path []string, att *tfjson.SchemaAttribute, group groupFilter) ([]nestedType, error) { name := path[len(path)-1] - _, err := io.WriteString(w, "- **"+name+"** ") + _, err := io.WriteString(w, "- `"+name+"` ") if err != nil { return nil, err } @@ -142,7 +142,7 @@ func writeAttribute(w io.Writer, path []string, att *tfjson.SchemaAttribute, gro func writeBlockType(w io.Writer, path []string, block *tfjson.SchemaBlockType) ([]nestedType, error) { name := path[len(path)-1] - _, err := io.WriteString(w, "- **"+name+"** ") + _, err := io.WriteString(w, "- `"+name+"` ") if err != nil { return nil, err } @@ -367,7 +367,7 @@ func writeNestedTypes(w io.Writer, nestedTypes []nestedType) error { func writeObjectAttribute(w io.Writer, path []string, att cty.Type, group groupFilter) ([]nestedType, error) { name := path[len(path)-1] - _, err := io.WriteString(w, "- **"+name+"** (") + _, err := io.WriteString(w, "- `"+name+"` (") if err != nil { return nil, err }