Skip to content

Instantly share code, notes, and snippets.

@rwaldron
Forked from visnup/index.html
Created September 3, 2012 02:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwaldron/3606341 to your computer and use it in GitHub Desktop.
Save rwaldron/3606341 to your computer and use it in GitHub Desktop.
playing with a very minimal one page site
<pre>
# Just Markdown, Yo.
So, I wanted to try to write the simplest webpage possible, [Max Ogden][1]
style. If you have JavaScript, you get something pretty. If not, then you see
[Markdown][2] text, which is fine too.
[1]: http://maxogden.com
[2]: http://daringfireball.net/projects/markdown/
</pre>
<script type="text/javascript" src="https://raw.github.com/chjj/marked/master/lib/marked.js"></script>
<script type="text/javascript">
(function(d) { var pre = document.body.firstChild, src = pre.firstChild.data; d.body.innerHTML = marked(src) })(document)
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment