Markdown: Allow linking to function or method calls within a file
Problem to solve
As a developer writing code documentation,
I want to link to specific methods or functions within a file,
So I don't have to update line numbers within the documentation if the placement within a file changes.
Intended users
Users who write code and reference it within markdown for documentation or merge requests.
Proposal
Ideally this would be as simple (or more simple) as the #L123 at the end of links for line numbers. It would be great to be able use something like:
Please see [MyClass::myMethod()](../src/MyStuff/MyClass.php::myMethod) for details.
Documentation
Documentation would need to be updated around here https://gitlab.com/help/user/markdown#links and/or https://gitlab.com/help/user/markdown#special-gitlab-references
Edited by Andrea Soper