1
0
Fork 0
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:
Taly 2022-06-29 04:36:04 +03:00
parent 78a30d24f5
commit 88b9cf3e21

View file

@ -4,6 +4,9 @@
export default class TableOfContent { export default class TableOfContent {
/** /**
* Initialize table of content * Initialize table of content
*
* @param {string} tagSelector - selector for tags to observe
* @param {string} tocWrapperSelector - selector for table of content wrapper
*/ */
constructor({ tagSelector, tocWrapperSelector }) { constructor({ tagSelector, tocWrapperSelector }) {
this.tagSelector = tagSelector || 'h2,h3,h4'; this.tagSelector = tagSelector || 'h2,h3,h4';