alphagov/slimmer — pull request #75 by GrouchPotato (2014-06-24 13:59:54+00:00)
Title: Add header identifier

The idea of this is to make every h1..h6 tag have an id so more savy
users can link to specific page sections.
Story: https://www.pivotaltracker.com/story/show/73290726

This processor adds an id to any h* tag which doesn't already have one.
ID's are generated from the heading text prefixed with 'heading_'. Duplications
are avoided by appending '_2' or an iteration of when necessary.