-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Will it ever be possible to embed gist snippets in github flavored markdown? #199
Comments
+1 |
4 similar comments
👍 |
👍 |
👍 |
👍 |
I would like to be able to embed hackpad pads. |
👍👍 |
This would be absolutely awesome, I currently maintain a list of references to standards, principles, best practices, design patterns, and software development processes that I pass out to new developers, but I also implement all of the above in my framework and I would love to not have to maintain the list in two places.... |
👍 |
cc/ @shiftkey as discussed at the drink up last night |
@missinglink Oh sweet! Pulling in the Big Guns(:tm:) now! Nice :smile_cat: |
👍 |
5 similar comments
👍 |
👍 |
👍 |
👍 |
👍 |
👍 👍 👍 |
👍 |
I don't really see this one happening. |
+1 |
I've been sitting on this for a while since @missinglink was in my ear about this, and I meant to write up some thoughts about it.
Off the top of my head, there's a number of questions I have about a hypothetical implementation of this:
But I'll leave it up to others who are more involved with the Gist project to make the final decision. For some context: I experimented with this problem on a project ages ago. I used HTML comment tags to anchor the dynamic content (in this case, code snippets) around documentation. A script would then search for placeholders, and their associated contents, and update them in one fell swoop. |
You could try https://developers.google.com/caja/ Although, it may be overkill. They also have a JsHtmlSanitizer script.
I would expect it to work just like linking issues through URLs, except that in this case it recognizes it as a Github gist and expands it. Hackpad does currently expand Github gists for example: https://hackpad.com/Look-Ma-a-Github-gist-EuAaGS6VHmd
Since it is a URL, other parsers would just show the URL I guess.
Hackpad seems to embed them all which I think is fine. If I wanted them separated I would create multiple gists.
Last revision would be fine to begin with, users will let you know if they need more than that. |
I agree with all @c4milo said. |
👍 |
3 similar comments
👍 |
👍 |
👍 |
👍 |
5 similar comments
👍 |
👍 |
👍 |
👍 |
👍 |
👍 |
👍 |
2 similar comments
👍 |
👍 |
Thanks for the request. This gem only handles markup to HTML conversion, but I've logged this feature request with our internal teams. |
This is not a feature that can be implemented by a change to this library, so I closed the issue. |
Will it ever be possible to embed gist snippets in github flavored markdown?
What are the technical issues involved with this, we obviously can't have people injecting random script tags in the page, but there must be another solution?
related: http://stackoverflow.com/questions/11622509/github-how-to-embed-a-gist-into-readme-md
Apologies is this is a duplicate, I assume this has been discussed at some point..
The text was updated successfully, but these errors were encountered: