Created
September 3, 2012 02:19
-
-
Save visnup/3606290 to your computer and use it in GitHub Desktop.
playing with a very minimal one page site
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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