Closed AntoineB9 closed 10 months ago
I'm not sure we can fix this if it is a problem with a plugin that isn't in core.'
Can you please provide a working codesandbox?
You checked the box for Bug does still occur when all/other plugins are disabled?
. Are you saying the issue happens also without the toc plugin?
This is a plugin-related issue, not a docsify-specific issue. Please recreate the issue in the appropriate plugin repo.
Bug Report
Steps to reproduce
What is current behaviour
What is the expected behaviour
Other relevant information
[x] Bug does still occur when all/other plugins are disabled?
Your OS: Windows
Node.js version: 16.15.0
npm/yarn version: 8.5.5
Browser version: Chrome is up to date / Version 115.0.5790.110 (Official Build) (64-bit)
Docsify version: 4.12.2 (Tested with the latest version and is not working either)
Docsify plugins: Pagescroll / Search / Themeable / Tabs / Toc / ZoomImage / Collapse/ Alerts / Copycode
Further exploration
We tried to develop a plugin to be able to link to anchors (headers) in tab and to make the anchors work inside the ToC, before knowing it was caused by routerMode. We found out that the script worked when you opened a link ; You were redirected to the right anchor but, the ToC kept on scrolling to the "right section" without changing the tab selection. We tried to add the script as a plug-in, by adding it as a .js file and adding the script at the end of index.html but it did not fix the issue. Same when we tried to add the script directly into index.html with a hook (illustrated below). Here is the code we used in the index.html :
Please create a reproducible sandbox
-> Sandbox : https://codesandbox.io/s/little-voice-4n6gxx
Mention the docsify version in which this bug was not present (if any)
Bug is not present when using "hash" routerMode