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

Generation of flat list of ul li has some order problem #80

Open
windmaomao opened this issue Feb 10, 2018 · 1 comment
Open

Generation of flat list of ul li has some order problem #80

windmaomao opened this issue Feb 10, 2018 · 1 comment

Comments

@windmaomao
Copy link

windmaomao commented Feb 10, 2018

ok, seems to me right now, all the toc are collected, ex. h2,h3, but when the li is added one by one, we add all h2 and then all h3. Is this a bug ?

   const selectors = el.dataset.toc.split(',').map(s => s.trim());
   selectors.forEach(selector => {
      const items = find(selector, container);

in the old library, jQuery seems to nail this properly

  var headings = $(opts.selectors, container);

so now I wonder if can the new find take a list of tags?

@opchen
Copy link

opchen commented Jul 3, 2019

Still have this problem...

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

No branches or pull requests

2 participants