Refactor hide extra rows

Hide extra rows didn't work so well with inline content and only really
worked with block level children. This updates hide-extra-rows to be
able to hide inline content like that found in the metadata on a
document. It adds a call to it on the new document metadata.