Markdown compatible self-referenced document resolver