I did a workaround which basically prompted the api to output in markdown. that seems to have done the trick