You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// In the case of section scrolling, these are hard swaps, so just load "section". In the case of `tags` the headers have the element html Id in the last `--id`, so split that off and check for it
// NOTE: Really this whole nonsense is because Marked, inserts -- between the prefix and the type and we cannot control it at all. When upgrading to Node 20, marked 16+, we will have to change this and we might even be able to make it work correctly. The biggest problem is that both the separator `--` and invalid character replacement `-`, can stack up.
Copy file name to clipboardExpand all lines: src/utils/common-utils.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ export function debounce(fn, delay) {
14
14
};
15
15
}
16
16
17
-
exportconstinvalidCharsRegEx=newRegExp(/[\s#:?&={}]/,'g');// used for generating valid html element ids by replacing the invalid chars with hyphen (-)
17
+
exportconstinvalidCharsRegEx=newRegExp(/[\s#:?&={}-]+/,'g');// used for generating valid html element ids by replacing the invalid chars with hyphen (-)
0 commit comments