amp-gist
Introduction
The amp-gist component allows embedding of an entire gist or a single file. The fixed-height layout is the only supported layout, and it requires the height attribute. You must provide the actual height of the gist, and you can find this on the gist page by inspecting the element with developer tools (e.g. Chrome Dev Tools). Visit GitHub Gist to create a Gist.
Setup
Import the amp-gist component
<script async custom-element="amp-gist" src="https://cdn.ampproject.org/v0/amp-gist-0.1.js"></script>
Basic usage
Embed an entire gist.