-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot link to RST sections since 0.17.0 #872
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Can you provide a full minimal example? Your example includes a lot of unnecessary stuff and link generation works for me when I remove the references to non-existing files. |
It indeed seems like the following syntax works now:
However, it does still throw a warning:
Here is a full minimal example: Not sure if I saw the warning and assumed that it wouldn't work, if a theme we use breaks it, or if it was broken in the past while still throwing the same warning. |
I could verify that (seemingly?) unnecessary warnings are being printed, I'll try to write a fix for that. The links all seem to work, though. |
What version of
myst-parser
are you using?2.0.0
What version dependencies are you using?
Sphinx 6.2.1
What operating system are you using?
Linux
Describe the Bug
On myst-parser versions before 0.17.0, you can link to RST sections via something like:
This was broken in 0.17.0 #519 (comment)
As far as I can tell, there is still no way to link to RST sections again. It looks like the following should work:
But that throws a warning and breaks the link:
Expected Behavior
should just link to the "load-and-run-a-script" section.
To Reproduce
Here are two example files that should reproduce the issue in a minimal project:
RST_MD_example.zip
The text was updated successfully, but these errors were encountered: