fix markdown codeblocks, add category to metadata