remarkjs/remark-github

Add support for Issue comments

wooorm opened this issue · 1 comments

Example:

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

Is turned into:

#1 (comment)

And:

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

(another repo), yields:

remarkjs/remark#133 (comment)

And a pr:

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

Looks like:

remarkjs/remark#134 (comment)

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

HTTPS and #issuecomment-123123123:
#2 (comment)

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

HTTPS and #issuecomment-123123:
#2 (comment)

HTTPS and #i:
#2 (comment)

HTTPS and #a:
#2 (comment)

HTTPS and hash (now an issue reference):
#2