I'm sure I'm being dim, but is it possible to view the rendered output of a gist?
This is the gist I'm interested in: https://gist.github.com/844752/420cc52eb4910fe8fa2bec9e13daab18b6230503
Where can I see how it actually renders?
@SeanKPS You can get the contents of a gist by visiting the raw url (developer.github.com/v3/gists/#get-a-single-gist) ( files. [file_name]. raw ). rawgit probably proxies the request to github, rewriting the response headers to add a Content-Type: text/html .
And of course you can edit… Ever wish you could comment on a gist? Well now you can! We've also updated the blog comments to the new style as well.
rawgit.com provides this service. To use rawgit.com, simply replace the domain of the raw view of the gist or github file you want to view with rawgit.com. For example:
https://gist.githubusercontent.com/mbostock/844752/raw/index.html
to
https://rawgit.com/mbostock/844752/raw/index.html
or
https://raw.githubusercontent.com/caffinatedmonkey/Hello-World-PSP/master/main.cpp
to
https://rawgit.com/caffinatedmonkey/Hello-World-PSP/master/main.cpp
RawGithub.com will let you render anything on Github, including gists. Two examples:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With