Skip to content

Commit

Permalink
Use code block for attribute name (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yomo committed Mar 15, 2022
1 parent 0c1f866 commit 1485946
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions schemamd/render.go
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 1485946

Please sign in to comment.