In T255682 the heading logic was centralized to core.
The html-title-heading template variable was added to create the h1 markup for the primary heading in the page. In future this will allow us to consistently identify headings across skins (currently Minerva uses the non-standard section_0 ID for example.
We should use this inside Vector rather than html-title for the primary heading in the page.