format_md function

Format Codebooks as Markdown