Process markdown documents