docs/api.md: update internal anchor links