Ensure ID fragments aren't broken

We have published IDs for HTML elements. We should try to ensure that
we don't break them if possible, in case people are already linking
to specific sections of the style guide.