Fix markdown render method