Removed dependence on `text-format'.

- Fixes #3.