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

Excluding/limiting by class #6

Closed
XhmikosR opened this issue Nov 20, 2018 · 2 comments
Closed

Excluding/limiting by class #6

XhmikosR opened this issue Nov 20, 2018 · 2 comments
Labels
wontfix This will not be worked on

Comments

@XhmikosR
Copy link

XhmikosR commented Nov 20, 2018

@allejo: after making the switch I just noticed that the only way to limit the target anchors is their header level.

Do you think it would be possible to add a parent class as a limit, like .content > h2?

Example: https://twbs-bootstrap4.netlify.com/docs/4.1/utilities/image-replacement/#warning

No big deal if it's hard to add such feature, we'll use JS or CSS to handle this, but I thought I'd ask :)

/CC @MartijnCuppens

@allejo
Copy link
Owner

allejo commented Nov 21, 2018

I'm afraid this wouldn't be possible. Since this project follows the same methodology as jekyll-toc, the problems discussed in allejo/jekyll-toc#3 would apply here.

Since the goal of this project is to be compatible with GH pages, I'm limited to clever-ish string manipulation of HTML so i have no real information on the DOM structure.

@allejo allejo added the wontfix This will not be worked on label Nov 21, 2018
@XhmikosR
Copy link
Author

No worries, I thought so too :)

We'll work around it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants