Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to have separator #8

Open
louim opened this issue Nov 12, 2014 · 2 comments
Open

Option to have separator #8

louim opened this issue Nov 12, 2014 · 2 comments

Comments

@louim
Copy link

louim commented Nov 12, 2014

It would be nice to have an option to pass an element that would be referenced in the table of contents as a separator.

@gajus
Copy link
Owner

gajus commented Nov 12, 2014

Please provide an example.

@louim
Copy link
Author

louim commented Nov 13, 2014

I think the best case /example would be something like this

<h2>something</h2>
<h2 class="separator">something</h2>
<h2>something</h2>

Separator class would be passed to the configuration, and would result in the table of content element having the same class so I can assign it different styling. The element in the table of content would also be non clickable.

I realized after opening the issue that I could probably attain the same result by creating a custom link function as shown in the doc, but I think it would be useful working out of the box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants