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?
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.
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.
Medium have said in their Twitter suppport feed that it's an issue that only affects the editor but it should look fine when published.
https://twitter.com/MediumSupport/status/1201827439632158725
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.