Fix incorrect markdown ordering issue.

- With multi-category children, children could be rendered into
  categories in advance of their parents being rendered. Fixed the
  recursion logic so this will no longer occur by moving child rendering
  out of the category 'each' loop.
- This fix made it no longer necessary to guard against duplicate doc_blocks, since each
  doc_block should correctly be rendered just once.