Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e7a23e4

Browse files
committed
fix(docs): generate correct ids on h elements to get scrolling working
1 parent 15fd735 commit e7a23e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/dom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ DOM.prototype = {
8686
if (typeof heading == 'string') {
8787
var id = heading.
8888
replace(/\(.*\)/mg, '').
89-
replace(/[^\d\w]/mg, '.').
89+
replace(/[^\d\w\$]/mg, '.').
9090
replace(/-+/gm, '-').
9191
replace(/-*$/gm, '');
9292
anchor = {'id': id};

0 commit comments

Comments
 (0)