Allow embedded github gists

Proposal

Allow for github gists to be embedded in the articles by including the embed snippet whenever a link to a gist is posted in the article text. So instead of automatically generating a hyper link from the URL, it would translate to a script tag with gist embed

Any occurance of a link like this in the article

https://gist.github.com/DennisAlund/62045dd3881151dc95865cd174677da5

would be translated to this in the formatted preview

<script src="https://gist.github.com/DennisAlund/62045dd3881151dc95865cd174677da5.js"></script>

Mockups / Examples

Editor

Preview / post

Benefits

First of all, it's pretty neat to embed github snippets. But in fairness, it's not too much of a trouble to just paste the code in markdown code way using ```

The real issue here is that steemit articles can't be updated after 7 days, and since code is code, it is often that readers report issues with snippets that has been hiding in plain sight until someone actually tested it out. For these reasons, steemit is not very well suited for posting code snippets and engage discussions around them.

By allowing embedded github gists, we'd be able to get around the 7 days-no-update issue by still being able to at least update the code within a gist.



Posted on Utopian.io - Rewarding Open Source Contributors

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now