Link to a line Markdown file on GitHub
I often link to GitHub source code via the #L
param in the URI.
eg : https://github.com/github/learn.github.com/blob/gh-pages/episodes.yaml#L1
But is there a way to link to lines within a Markdown file?
eg https://github.com/github/learn.github.com/blob/gh-pages/README.md#L1 (does not work!)
I know I can link to 'sections', but lines are much better!
eg https://github.com/github/learn.github.com/blob/gh-pages/README.md#learngithubcom
由于目前不可能,我采取下一个最佳选择:使用责备 ,然后突出显示行,例如https://github.com/rails/rails/blame/master/guides/source/configuring.md#L166
Short answer: no . Markdown is rendered into an HTML document by GitHub, so it's not currently possible to see it in a raw form that also allows you to link to individual lines. Maybe GitHub will implement this kind of functionality sometime in the future, but for now, it's not possible.
链接地址: http://www.djcxy.com/p/20218.html