Ignore links like '//google.com' when building TOC
Minor tweaks to TOC code