JavaScript code
<div id="text"></div>
<script>
document.getElementById("text").innerHTML = "Text added by JavaScript code";
</script>
- One can include plain HTML in the md file. So include
scripttags. - The code should come at the end to have the DOM available already.