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

Backport of 862a04a56d from master