format references like:
```
.. [1] one refs
.. [2] second refs
```