Ref #8676 * add the `-e` flag for embedded mode * add a level offset to include the title of the document