html: render headings v2

Use custom rendering pipeline instead of Razor based solution