navigation.tracking
overrides progress of IDs outside of table of contents
#3599
Closed
5 tasks done
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
iShot2022-02-21.10.04.03.mp4
When I enable both
navigation.tracking
andcontent.code.annotate
.Later, when I want to get a link to one of the lines in the code block, the url in the url bar will immediately become the url of the title of the current content.
This prevents me from getting a link to one of the lines in the code block.
So is this as expected?
Expected behaviour
When I select a line in the code block, the url should point to that line's anchor, unless when I move on, the anchor should change to the current heading's anchor.
Actual behaviour
already explained in the Description.
Steps to reproduce
I found that in the official documentation it can be reproduced.
iShot2022-02-21.10.12.49.mp4
Package versions
python --version
mkdocs --version
pip show mkdocs-material | grep -E ^Version
Configuration
Enable
navigation.tracking
andcontent.code.annotate
.System information
The text was updated successfully, but these errors were encountered: