Format api doc in markdown