Fix link refactoring bug and separate top-level and deeper block rendering.
Fix link refactoring bug and separate top-level and deeper block rendering.

lapets/sheaf,lapets/sheaf,lapets/sheaf,lapets/sheaf