Skip to content

Commit cabc562

Browse files
zippolytedetro
authored andcommitted
Fix title and reference links of nested blocks/attributes
1 parent 044f0f3 commit cabc562

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

schemamd/render.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ nameLoop:
293293
}
294294

295295
for _, name := range sortedNames {
296-
path := append(parents, name)
296+
path := make([]string, len(parents), len(parents)+1)
297+
copy(path, parents)
298+
path = append(path, name)
297299

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

0 commit comments

Comments
 (0)