Header metadata

Include structured heading metadata with specialist document editions
so the specialist frontend can display a nested list of headings.

https://www.pivotaltracker.com/s/projects/1010866/stories/65350948