jgallen23 / toc

Table of Contents Plugin
http://projects.jga.me/toc/
MIT License
531 stars 111 forks source link

Only insert anchor if id doesn't exist #17

Closed raineorshine closed 10 years ago

raineorshine commented 11 years ago

If my h1's already have id's and I want to use them as the anchorNames instead of #toc1, #toc2, etc, then we need to not insert a new element with the same id.

(I wasn't able to do the full build process. I did 'make install' but then there was no ./node_modules so I'm not sure where it installed smoosh.)

jgallen23 commented 10 years ago

this was fixed in #35