Support reference-style Markdown links in Docstring rendering #4402
Replies: 5 comments
-
Notes from triage:
|
Beta Was this translation helpful? Give feedback.
-
This looks like an enhancement in pylance to me. For the
Above would provide the capability to navigate to the |
Beta Was this translation helpful? Give feedback.
-
Note that, specifically, mkdocstrings supports arbitrarily-deep nested dotted-path in these Markdown references. That's a lot of concatenated words, so let me give some examples of what is supported in mkdocstrings:
Supported reference formats:
|
Beta Was this translation helpful? Give feedback.
-
We can associate a command (go to def) with the string. |
Beta Was this translation helpful? Give feedback.
-
Moving this issue to discussion as an enhancement request for comments and upvotes. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using
mkdocstrings
to build documentation for my project, but have noticed that when I use Markdown's reference-style links in order to link various functions and classes in my code together. For example,[foo.bar][]
should render as a link to thebar
object in thefoo
module.This works great for my documentation site, but means that users of my package who use VS Code's intellisense have a suboptimal experience as the Python extension renders this markdown incorrectly.
A minimum acceptable fix would be to only render the contents in the left-hand square brackets and ignore the link, which at least wouldn't lead to incorrect formatting.
Optimally, it'd be nice to have clicking on these links take users to the linked function definition, and show that function's documentation on hover, however I understand that this may be more challenging to implement depending on the capabilities of VS Code.
Beta Was this translation helpful? Give feedback.
All reactions