thought about this one a little more. i think i'm going to revert this. it relies on the collection already being in its final nested structure. I think I'll just go back to what i had before, which was to update the markdown of each doc_block in the collection after the structure has been set.