%%html
<script src="https://cdn.rawgit.com/knsv/mermaid/bc5f73daa2769b666ccf442fa4f6d7fd4995feb0/dist/mermaid.full.js"></script>
This is another markdown cell.
This cell must be included somewhere, but the end is fine.
%%html
<script>$(function(){
window.mermaid && mermaid.init();
$(IPython.events).on("rendered.MarkdownCell", function(evt, cell){
mermaid.init();
});
});</script>