Comments (7)
For the latter point a little badge at the top like this could be cool.
[![cdnjs](https://img.shields.io/cdnjs/v/tocbot)](https://cdnjs.com/libraries/tocbot)
from tocbot.
Thanks for the great suggestion! I've added the badge in this PR: #282
from tocbot.
Hey, thanks for reporting this issue and sharing the example! And sorry I've been late to respond, I got sick with Covid over the weekend. I'll try to look into this tonight and see what I find.
from tocbot.
I took the same content that you had and put it in the documentation site and it seems like it has the proper nesting there. I'm not quite sure what is causing this issue.
from tocbot.
I think the version I was using was old and it has been fixed since then. I was using the version from the readme (4.11.1).
With a more current version it works in my example: https://jsfiddle.net/vuqdt9zx/
Maybe the versions in the CDN snippets in the readme should be updated?
from tocbot.
Awesome, glad the latest version fixed this issue! I’ll work on updating the readme version.
from tocbot.
I think that would help lazy people like me who just copy the readme snippets. Also I was thrown off because 4.12.0 is the latest GitHub "release" (though I now see there are many more recent tagged versions).
from tocbot.
Related Issues (20)
- index.d.ts mismatch current options HOT 2
- No highlight in Hugo Dream template HOT 2
- How can I add an extra nav link for example "Comments"? HOT 3
- headingsOffset does not work with scrollSmooth: true HOT 5
- Additional input text line for either filtering or searching HOT 2
- "ol.toc-list" could be truncated, especially if the root heading is shown HOT 6
- Ignore header tags with no ids HOT 1
- Tocbot scrolls to the right position onClick but highlighting doesn't seem to show the active section HOT 4
- Structural issue while using readme API HOT 3
- ESM version HOT 5
- Added ESM version breaks storybook build HOT 26
- Structure changed and now index.js references non-existent src dir HOT 2
- Tocbot links not activating in CSS grid layout HOT 5
- No more types? HOT 2
- Next.js SSG + markdown-it HOT 13
- Incorrect entry point for cjs HOT 8
- Unable to scroll for several seconds when smooth scrolling is disabled HOT 3
- Not showing h3, h4 in TOC? HOT 4
- tocbot is not defined when trying to run storybook 6 locally HOT 6
- Error "no default export" when using latest (4.29.0) and typescript HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tocbot.