Skip to content

Instantly share code, notes, and snippets.

@visnup
Created September 3, 2012 02:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save visnup/3606290 to your computer and use it in GitHub Desktop.
Save visnup/3606290 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][3]. If you have JavaScript, you get something pretty. If not, then you
see [Markdown][2] text, which is fine too.
Another paragraph, just for fun.
[1]: http://maxogden.com
[2]: http://daringfireball.net/projects/markdown/
[3]: http://callbackhell.com
## Some meta stuffs
<pre>
(function(d) {
var pre = document.body.firstChild
, src = pre.innerHTML
pre.outerHTML = marked(src)
})(document)
</pre>
</pre>
<link rel="stylesheet" href="https://raw.github.com/orderedlist/modernist/master/stylesheets/styles.css" />
<script src="https://raw.github.com/chjj/marked/master/lib/marked.js"></script>
<script>
(function(d) {
var pre = document.body.firstChild
, src = pre.innerHTML
pre.outerHTML = '<div class="wrapper"><section>' + marked(src) + '</section></div>'
})(document)
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment