Took care of item 1 on to-do list, also cleaned up the chapter snippet, made it use metadata name as html anchor on the heading. Since the metadata is already attached to the paragraph, I can just pluck it out and use it again for my hrefs when I build the table of contents snippet.