Fixup MD references.
Flesh out PathedDocument implementation.