Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement gist embedding #38

Closed
wants to merge 1 commit into from
Closed

Implement gist embedding #38

wants to merge 1 commit into from

Conversation

surma
Copy link

@surma surma commented Aug 18, 2012

While writing a blog post in a gist with the aim of publishing it using gist.io I discovered that using Github's Gist embedding mechanism is not supported. No surprise there, actually.

But providing some syntax for embedding gists would actually solve the already existing syntax highlighting issue – so I took a swing at it and enabled <gist> tags.

Here is an example of how my implementation works (take a raw look at the Markdown file). Since the way GitHub serves their syntax highlighting (using document.write), the solution is somewhat inelegant and relies on Injector.js.

Looking forward to your feedback.

@surma
Copy link
Author

surma commented Mar 21, 2018

Closing this. It’s been 6 years.

@surma surma closed this Mar 21, 2018
@eyecatchup
Copy link

eyecatchup commented Mar 12, 2019

Hey @surma, I like the idea a lot.

If you still need something like this, I implemented your concept in my gist.io replacement. You can see your example gist in action here: https://nicegist.github.io/3382937

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants