Remove unneeded npm packages, only build TOC when there are two or more <h1> elements