Embed runkit notebook into your book
npm install gitbook-plugin-runkitThis GitBook plugins makes it easy to embed runkit notebook in a GitBook.
Configure the plugin in your book.json:
``js`
{
"plugins": ["runkit"]
}
Include a notebook using the runkit block:
`md
Here is notebook:
{% runkit %}
// GeoJSON!
var google = "https://storage.googleapis.com/maps-devrel/google.json"
JSON.parse(await require("request-promise")(google))
{% endrunkit %}
And here is a read-only notebook:
{% runkit readOnly=true %}
// GeoJSON!
var google = "https://storage.googleapis.com/maps-devrel/google.json"
JSON.parse(await require("request-promise")(google))
{% endrunkit %}
``