Refactored markdown code