gfranko / jquery.tocify.js

A jQuery Table of Contents plugin that can be themed with Twitter Bootstrap or jQueryUI.
http://gregfranko.com/jquery.tocify.js/
MIT License
927 stars 217 forks source link

Fix colon-space hashes #22

Closed joaquincasares closed 11 years ago

joaquincasares commented 11 years ago

I do understand that I can pass in my own function, but figured this might be nice to have support out of the box for cases like this:

https://website.com/article/1234.html#chapter-1-something-to-talk-about

vs.

https://website.com/article/1234.html#chapter-1:-something-to-talk-about

while still allowing other cases like:

https://website.com/article/1234.html#chapter-1-http://-examples
gfranko commented 11 years ago

@joaquincasares This looks like a great addition. Would you mind sending this PR to the dev branch? I will be releasing a new version soon. Thanks!

joaquincasares commented 11 years ago

Sure thing! I'll be waiting for it.

Btw, nice job on the project! Thanks!