remark-github autolink compare only works for sha commit? #1416
Unanswered
gagahpangeran
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Are these documented somewhere? I was not aware of them. I guess these are also different because non-sha’s don’t “expand”: 15.0.0...15.0.1 stays plain text. Whereas Functionality for the URL is here: https://github.com/remarkjs/remark-github/blob/9cd4e9d8fa6cd3520d11aa922462a0089e1204c5/lib/index.js#L142. The regex matches hexadecimal characters. It would be good to test which characters are allowed around |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
These links are valid compare link in Github.
Result:
a3cc87c...cdab8fa
15.0.0...15.0.1
main...website
15.0.0...main
1d706ed...main
6a43da8...15.0.1
I use
remark-github
with this example.Output:
I expect the output is something like this.
Looks like the compare autolink only works when comparing two sha commit. Is this intentional?
I ask about this in this discussion page before creating an issue to confirm about this.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions