Closed kevalrathod closed 2 months ago
Also when i try to fetch h3 heading it shows nothing
Hey, sorry to hear you are running into this issue. Do the headings in the document have id's? If not, you should be able to add them with this util: https://github.com/tscanlin/tocbot/blob/master/src/utils/make-ids.js
Also, if you are still having issues, could you share a full example url with this issue reproduced so that I can more easily troubleshoot and try to help?
Hopefully that helps. Have a good weekend!
Closing due to inactivity. Please reopen if this is still an issue for you.
Hey, i am trying to use tocbot for the new project. I am using Next 14 app router i am trying to render table of content it shows h2 tags but href of the list of href is setting "#".
tocbot version: 4.25.0
the config i use is
which previews heading with href="#"
I am using readme api to fetch the doc content and which gives me html_bosy something like this
<h2 class="header-scroll"><div class="anchor waypoint" id="section-parameters"></div>Parameters<a class="fa fa-anchor" href="#section-parameters"></a></h2>