You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the MyST plugin for Sphinx, and I have a header with an explicit target:
(introduction)=
# Introduction to a Thing with Many Words
In another file, I wrote a cross-reference to this:
[](#introduction)
This results in a warning
WARNING: more than one target found for 'myst' cross-reference inspection: could be :std:ref:`Introduction to a Thing with Many Words` or :std:doc:`Introduction to a Thing with Many Words` [myst.xref_ambiguous]
though the link is to the correct place and works as expected.
I tried to add more detail to disambiguate the link. However, changing the link to any of these:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using the MyST plugin for Sphinx, and I have a header with an explicit target:
(introduction)= # Introduction to a Thing with Many Words
In another file, I wrote a cross-reference to this:
This results in a warning
though the link is to the correct place and works as expected.
I tried to add more detail to disambiguate the link. However, changing the link to any of these:
results in
instead. Using an implicit target
works as expected, but I'd prefer not to use implicit targets due to their fragility.
How do I properly disambiguate the link to the explicit target?
Beta Was this translation helpful? Give feedback.
All reactions