fix code block markdown output

properly print the closing when using backquotes