Reputation: 1263
When I try to embed gist in Medium it shows only the first 11 lines of the gist while code is longer inside gist. How can be this fixed?
Upvotes: 32
Views: 6978
Reputation: 456
Medium have said in their Twitter support feed that it's an issue that only affects the editor but it should look fine when published:
Hi Ayush! This is a known issue that only affects the editor. The gists will be displayed properly once the post is published. Sorry for the trouble!
Upvotes: 44
Reputation: 186
I had similar problem while working on my first blog. But following solution helped me. Clone gist via HTTPS. Copy link and paste in editor(no embed, just normal line). Press enter. Pressing enter is important. You will see your code once you hit enter.
Upvotes: 8
Reputation: 8736
You can just ignore it and complete the blog. During the blog edit, it will not show full source code but it will show the full source code once published.
It is a known issue of medium.
Upvotes: -1
Reputation: 161
To embed a Tweet, Instagram video, or more on Medium, all you need to do is to paste the URL into the Medium editor, and press Enter to convert that link into an embed.
As per the medium guide, you just have to paste the gist embed URL into the Medium editor (without the script tag), and press Enter. It'll convert into an embed code segment on the editor itself.
Upvotes: 9