Closed ibrahimaljalal closed 1 month ago
Thanks for reporting. This is a known limitation. You need to copy the list item and uniquely reference annotations. It's not easy to fix, because annotations can contain anything, including interactive elements that we can't just clone, which we'd need to do if we'd support it. We may re-evaluate this in the future, but for now it is not supported.
Context
No response
Bug description
In the code below:
The annotation after "annotation 1" will not open. If we remove one of the annotations with number one "(1)". The issue will go.
Related links
Reproduction
annotation issue.zip
Steps to reproduce
install the mkdocs and material theme
in terminal write: python -m mkdocs new .
Write in the mkdocs.yml file: markdown_extensions:
Write in the docs/index.md file: annotation 1 (1) second annotation 2 (2) first annotation 3 (same as one) (1) { .annotate }
text in first annotation
text in second annotation
Browser
No response
Before submitting