If you want to use markdown for a single page, you can use markdown.js to interpret a markdown file (I've called mine index.md) loaded with jquery:

<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="http://raw.github.com/evilstreak/markdown-js/master/lib/markdown.js"></script>
</head>
<body>
<div id="docs"> </div>
<script>
$.get("index.md", function(markdownText) {
document.getElementById('docs').innerHTML = markdown.toHTML(markdownText);
},"text");
</script>
</body>
</html>
view raw gistfile1.html hosted with ❤ by GitHub


Leave a Reply