Fix formatting issues with markdown code blocks