fix formatting of code examples in api documentation