Use hook to allow plugins to edit page content during generation (Fixes #176)