-
Notifications
You must be signed in to change notification settings - Fork 4k
Open
Description
Context
No response
Bug description
My configuration is as follows:
site_name: My Docs
site_url: https://example.com
markdown_extensions:
- attr_list
theme:
name: material
features:
- navigation.instant.previewAnd the content of my index.md is as follows:
# Welcome to MkDocs
For full documentation visit [mkdocs.org](https://www.mkdocs.org).
## 命令
* `mkdocs new [dir-name]` - Create a new project.
* `mkdocs serve` - Start the live-reloading docs server.
* `mkdocs build` - Build the documentation site.
* `mkdocs -h` - Print help message and exit.
## Project layout
mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.
[Link1](#命令){data-preview}
[Link2](#project-layout){data-preview}The actual effect is that instant.preview on Link2 works normally, while instant.preview on Link1 does not.
This situation occurs not only with mkdocs-material, but also with zensical.
Related links
Reproduction
Steps to reproduce
mkdocs serveorzensical serve- Move the mouse over the two links to see the effect
Browser
No response
Before submitting
- I have read and followed the bug reporting guidelines.
- I have attached links to the documentation, and possibly related issues and discussions.
- I assure that I have removed all customizations before submitting this bug report.
- I have attached a .zip file with a minimal reproduction using the built-in info plugin.
Metadata
Metadata
Assignees
Labels
No labels