We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3c79533 + 116fbf4 commit 785763aCopy full SHA for 785763a
_layouts/doc.html
@@ -25,12 +25,11 @@
25
<script type="text/javascript">
26
$(document).ready(function () {
27
$('#toc').toc({
28
- 'selectors': 'h2,h3,h4',
29
- 'prefix': 'toc',
30
- 'container': '#page',
31
- 'anchorName': function(i, heading, prefix) { //custom function for anchor name
32
- return $(heading).text().replace(' ','-');
33
- },
+ selectors: 'h2,h3,h4',
+ container: '#page',
+ anchorName: function (i, heading, prefix) {
+ return $(heading).text().replace(/\s/g, '-').replace(/[^\w-]/g, '');
+ },
34
});
35
36
</script>
@@ -50,4 +49,4 @@
50
49
51
52
</div>
53
-</div>
+</div>
0 commit comments