Fix generation for latest docs

The docs now have `id=""` inside their `<h1>` and whatever. This made the regexes not work, so I changed them to something that seems to work.

I know you gave me access to the repo, but I won't accept this pull request. My knowledge of node and regexes is 0 and I don't want to ruin your work with my hacky code.