how to embded a github gist in markdown
This post explains how to embed a gist into a markdown page.
How to embded a github gist in markdown
From your gist, get the id. You can get this from the url.
For example, I have a sample gist here: https://gist.github.com/jasonray/d67bbfb5de0c6ea6e56e2e917a7b6c94
The id is d67bbfb5de0c6ea6e56e2e917a7b6c94
Use the following in your markdown, replacing with your gist id:
ID:
<script src="https://gist.github.com/d67bbfb5de0c6ea6e56e2e917a7b6c94.js"> </script>
username + ID:
<script src="https://gist.github.com/jasonray/d67bbfb5de0c6ea6e56e2e917a7b6c94.js"> </script>
I have had success with both patterns.
Output:
ID:
username + ID: