Force plain rendering for github links.

When linking to a document that renders like markdown or org-mode, we need the plain parameter to get the link to actually go to a line of code.
This commit is contained in:
Tom Alexander 2023-10-02 19:44:39 -04:00
parent 9d118078ae
commit f28f542d4d
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -77,7 +77,7 @@
(let* (
(gh-org (match-string 2 repository-url))
(gh-repo (match-string 3 repository-url))
(full-url (format "https://github.com/%s/%s/blob/%s/%s#L%s" gh-org gh-repo current-rev relative-path line-number))
(full-url (format "https://github.com/%s/%s/blob/%s/%s?plain=1#L%s" gh-org gh-repo current-rev relative-path line-number))
)
(message "%s" full-url)
(kill-new full-url)