Skip to content

Commit 1485946

Browse files
authored
Use code block for attribute name (#59)
1 parent 0c1f866 commit 1485946

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

schemamd/render.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ type nestedType struct {
6565
func writeAttribute(w io.Writer, path []string, att *tfjson.SchemaAttribute, group groupFilter) ([]nestedType, error) {
6666
name := path[len(path)-1]
6767

68-
_, err := io.WriteString(w, "- **"+name+"** ")
68+
_, err := io.WriteString(w, "- `"+name+"` ")
6969
if err != nil {
7070
return nil, err
7171
}
@@ -142,7 +142,7 @@ func writeAttribute(w io.Writer, path []string, att *tfjson.SchemaAttribute, gro
142142
func writeBlockType(w io.Writer, path []string, block *tfjson.SchemaBlockType) ([]nestedType, error) {
143143
name := path[len(path)-1]
144144

145-
_, err := io.WriteString(w, "- **"+name+"** ")
145+
_, err := io.WriteString(w, "- `"+name+"` ")
146146
if err != nil {
147147
return nil, err
148148
}
@@ -367,7 +367,7 @@ func writeNestedTypes(w io.Writer, nestedTypes []nestedType) error {
367367
func writeObjectAttribute(w io.Writer, path []string, att cty.Type, group groupFilter) ([]nestedType, error) {
368368
name := path[len(path)-1]
369369

370-
_, err := io.WriteString(w, "- **"+name+"** (")
370+
_, err := io.WriteString(w, "- `"+name+"` (")
371371
if err != nil {
372372
return nil, err
373373
}

0 commit comments

Comments
 (0)