Improve formatting in the hooks documentation