LoginSignup
1
0

More than 1 year has passed since last update.

GitHub:Markdown (rst, md) の行へのリンクを取得する方法

Posted at

GitHubである行(Line)へのリンクを取得したいことがある(Issueとか解説BLOGとか)が、これまで Markdown(rst, md 等) 形式のファイルはレンダリングされてしまい行へのリンクが取得できなかった。

これが2021年6月にできるようになった:
https://github.blog/changelog/2021-06-30-parameter-to-disable-markdown-rendering/

やり方は簡単で "URLの最後に ?plain=1 を加えて表示" するだけ。
行番号をクリックすると表示される ・・・ から

・Copy line
・Copy permalink
・View git blame
・Reference in new issue

を選択できるようになった。

例:https://github.com/ebiken/p4srv6/blob/master/README.md?plain=1#L3

image.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0