8 lines
220 B
JavaScript
8 lines
220 B
JavaScript
gitbook.events.bind('start', function(e, config) {
|
|
anchors.options = config.anchorjs || {};
|
|
});
|
|
|
|
gitbook.events.bind('page.change', function() {
|
|
anchors.add(anchors.options.selector || 'h2,h3,h4,h5');
|
|
});
|