Skip to content

Commit

Permalink
Fix title and reference links of nested blocks/attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
zippolyte authored and detro committed Jun 28, 2022
1 parent 044f0f3 commit cabc562
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion schemamd/render.go
Expand Up @@ -293,7 +293,9 @@ nameLoop:
}

for _, name := range sortedNames {
path := append(parents, name)
path := make([]string, len(parents), len(parents)+1)
copy(path, parents)
path = append(path, name)

if childBlock, ok := block.NestedBlocks[name]; ok {
nt, err := writeBlockType(w, path, childBlock)
Expand Down

0 comments on commit cabc562

Please sign in to comment.