How to embed dynamic JS content on the Ghost blogging platform

Ghost is a wonderful blogging platform but what if you wanted to include something dynamic ? Nothing more easy !

<canvas id="universe"></canvas>
<script type="text/javascript"  src="https://lab.openbloc.fr/way-of-life/js/lab-bundle.js?380a213f">Enable javascript please</script>

The Ghost preview window will show you the following:

Demo of the game of life, click to add new cells:

Thanks for reading !

Photo by Max McKinnon on Unsplash