Don't break right Table of Content when there is no id for heading (#3236)
Don't break right Table of Content when there is no id for heading (#3236)

* Don't break right Table of Content when there is no id for heading

* Refactor ToC script and hide links without id

bcreane/calico,bcreane/calico,bcreane/calico,bcreane/calico,bcreane/calico,bcreane/calico