Format code blocks with markdown