-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Question] Split into sections #25
Comments
Don't remember deactivating the discussions tab but it's back now. Thanks for the describing your use case! This feature sounds like it's out of scope for then my advice would be to use a markdown/HTML parser that allows customizing the output based on tag. This site uses Lines 3 to 30 in b7f6f49
|
Thanks, @janosh. Anyway thanks a lot! BTW. Is it possible to detect in someway when ToC is turning to be fixed position? My use case is on top of my content currently and can't find a way to move it out at the exact time. |
Maybe this helps? https://css-tricks.com/how-to-detect-when-a-sticky-element-gets-pinned |
Hi @janosh,
This is not about bugs or issues, but the discussions tab is not active in this repo.
Am I thinking if this will have any sense to add to svelte-toc or if not if you mind helping me do something like that with the current implementation?
What I need:
I need to wrap headers and their contents into HTML tags (preferably of the choice).
So if I have content like this:
I would need to be wrapped like this:
as that HTML tag of choice
Wrapping each header and its own child.
The biggest problem here is to detect 'child' of the header because, from a technical point of view, this is not the child but unrelated content.
Probably logic will need to be something like this:
<tag>
</tag>
beforeThe text was updated successfully, but these errors were encountered: