From e7a23e4b6585d497112935a7d00cb6906d8c8417 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Fri, 13 Jan 2012 00:46:03 -0800 Subject: fix(docs): generate correct ids on h elements to get scrolling working --- docs/src/dom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/src/dom.js') diff --git a/docs/src/dom.js b/docs/src/dom.js index 7363d06b..bda90373 100644 --- a/docs/src/dom.js +++ b/docs/src/dom.js @@ -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}; -- cgit v1.2.3