mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-08-07 14:35:26 +02:00
Update table-of-content.js
This commit is contained in:
parent
78a30d24f5
commit
88b9cf3e21
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,9 @@
|
|||
export default class TableOfContent {
|
||||
/**
|
||||
* Initialize table of content
|
||||
*
|
||||
* @param {string} tagSelector - selector for tags to observe
|
||||
* @param {string} tocWrapperSelector - selector for table of content wrapper
|
||||
*/
|
||||
constructor({ tagSelector, tocWrapperSelector }) {
|
||||
this.tagSelector = tagSelector || 'h2,h3,h4';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue