fix(docs): generate correct ids on h elements to get scrolling working

This commit is contained in:
Vojta Jina 2012-01-13 00:46:03 -08:00
parent 15fd735793
commit e7a23e4b65

View file

@ -86,7 +86,7 @@ DOM.prototype = {
if (typeof heading == 'string') {
var id = heading.
replace(/\(.*\)/mg, '').
replace(/[^\d\w]/mg, '.').
replace(/[^\d\w\$]/mg, '.').
replace(/-+/gm, '-').
replace(/-*$/gm, '');
anchor = {'id': id};