markdown code cleaning