Skip to content

Instantly share code, notes, and snippets.

@StevenMDixon
Created September 25, 2018 14:09
Show Gist options
  • Save StevenMDixon/e179aca6ac2bb4f1e4c5b168a8093eeb to your computer and use it in GitHub Desktop.
Save StevenMDixon/e179aca6ac2bb4f1e4c5b168a8093eeb to your computer and use it in GitHub Desktop.
<script src='https://cdnjs.cloudflare.com/ajax/libs/marked/0.5.0/marked.min.js'>
<body>
<div id='target'></div>
</body>
<script>
const myMarkDown = `# Hello World`;
const target = document.getElementById('target');
target.innerHTML = Marked(myMarkDown);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment