Improve formatting for hook template docs.