[1.6.x] Fixed some markup in docs/ref/templates/api.txt

Backport of 862a04a56d from master