Improve code sample rendering in API docs.