Qualify slugs with those from parent headings

For example, and <h2> below an <h1> would get '<slug-from-h1>-<slug-from-h2>'.