chore(docs): add directive to pad heading anchors

Closes #2070
Closes #9360
And shouldn't it be:

    if (/^(h\d+)|(a)$/i.test(element[0].nodeName) || attrs.ngOffset) {