yusanshi / emgithub

Embed a file from GitHub repository just like GitHub Gist.
https://emgithub.com
MIT License
409 stars 77 forks source link

Support embed a code snippet #6

Closed fantasticmao closed 4 years ago

fantasticmao commented 4 years ago

Support embed a code snippet by using the GitHub's permanent link.

I tested it briefly, and it works well.

image

Some things about GitHub permanent links can be found here: https://docs.github.com/en/github/managing-your-work-on-github/creating-a-permanent-link-to-a-code-snippet

yusanshi commented 4 years ago

Hey, thanks for your PR.

I have made some changes to fantasticmao:master. It that's OK to you, I'll merge this PR.

fantasticmao commented 4 years ago

Awesome, I've seen the changes, and please.