format instance methods as md