remarkjs / remark-github

remark plugin to link references to commits, issues, pull-requests, and users, like on GitHub
https://remark.js.org
MIT License
179 stars 22 forks source link

Add support for Issue comments #2

Closed wooorm closed 8 years ago

wooorm commented 8 years ago

Example:

https://github.com/wooorm/remark-github/issues/1#issuecomment-161998911

Is turned into:

https://github.com/wooorm/remark-github/issues/1#issuecomment-161998911

And:

https://github.com/wooorm/remark/issues/133#issuecomment-172238087

(another repo), yields:

https://github.com/wooorm/remark/issues/133#issuecomment-172238087

And a pr:

https://github.com/wooorm/remark/pull/134#issuecomment-172237535

Looks like:

https://github.com/wooorm/remark/pull/134#issuecomment-172237535

wooorm commented 8 years ago

Also, a test for http, and for non-existing comments:

HTTPS and #issuecomment-123123123: https://github.com/wooorm/remark-github/issues/2#issuecomment-123123123

HTTP and #issuecomment-123123123 (should not render): http://github.com/wooorm/remark-github/issues/2#issuecomment-123123123

HTTPS and #issuecomment-123123: https://github.com/wooorm/remark-github/issues/2#issuecomment-123123

HTTPS and #i: https://github.com/wooorm/remark-github/issues/2#i

HTTPS and #a: https://github.com/wooorm/remark-github/issues/2#a

HTTPS and hash (now an issue reference): https://github.com/wooorm/remark-github/issues/2#