chore(docs): add directive to pad heading anchors

Closes #2070
Closes #9360
I think we could check if there is an id (since it's useless to create the anchor of there isn't).