dotnet / dotnet/docfx

Link to source code - like a "view source" link

Open
#7,021 1 comment 4 reactions 0 assignees View on GitHub
markdown
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

I would like to make a link in my .md article files to specific code files on the github repository.
I see the api "view source" links work just fine, but I'm not sure how to create my own "view this particular source file" link in an .md article.

I did see this in the docfx flavoured markdown page, but it's an "include" rather than just a link:
`[!code-csharp[Main](Program.cs)]`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.