markdown-live-preview/index.html

108 lines
3.0 KiB
HTML
Raw Normal View History

2011-05-16 20:26:21 +04:00
<!DOCTYPE html>
<html>
2011-05-16 20:26:21 +04:00
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-language" content="en">
2011-05-16 20:26:21 +04:00
<meta http-equiv="content-script-type" content="text/javascript">
<meta http-equiv="content-style-type" content="text/css">
2011-05-20 05:07:55 +04:00
<meta name="description" content="This is the Markdown editor with live preview. enjoy.">
<meta name="keywords" content="markdown,editor,github,reference">
2011-05-16 20:26:21 +04:00
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="js/markdown.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-73660-11']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
2011-05-20 05:07:55 +04:00
<title>Markdown Live Preview</title>
2011-05-16 20:26:21 +04:00
</head>
<body>
2011-05-18 19:31:16 +04:00
<h1 id="header"><a href="./"><img src="image/logo.png" width="315" height="22" alt="Markdown Live Preview"></a></h1>
2011-05-16 20:26:21 +04:00
<div id="container">
2011-05-17 17:17:47 +04:00
<div id="leftColumn">
<div class="section">
<h2>markdown</h2>
<textarea id="markdown"></textarea>
</div>
2011-05-16 20:26:21 +04:00
2011-05-17 17:17:47 +04:00
<div class="section">
<h2>output</h2>
<div id="output"></div>
</div>
</div>
2011-05-16 20:26:21 +04:00
2011-05-17 17:17:47 +04:00
<div id="rightColumn">
<div class="section">
<h2>reference</h2>
2011-05-18 19:10:58 +04:00
<table id="reference">
<tr>
<th>You type</th>
<th>You get</th>
</tr>
<tr>
<td># h1</td>
<td></td>
</tr>
<tr>
<td>*emphasis*</td>
<td></td>
</tr>
<tr>
<td>**strong**</td>
<td></td>
</tr>
<tr>
<td>* list</td>
<td></td>
</tr>
<tr>
<td>1. list</td>
<td></td>
</tr>
<tr>
<td>&gt; this is<br>&gt; quote</td>
<td><script type="text/javascript">document.write(markdown.toHTML("> this is\n\n> quote"))</script></td>
</tr>
<tr>
<td> code<br>(4 spaces indent)</td>
<td><script type="text/javascript">document.write(markdown.toHTML(" code"))</script></td>
</tr>
<tr>
<td>[Wikipedia](http://wikipedia.org)</td>
<td></td>
</tr>
<tr>
<td>----</td>
<td></td>
</tr>
2011-05-17 18:50:41 +04:00
</table>
2011-05-17 17:17:47 +04:00
</div>
</div>
2011-05-16 20:26:21 +04:00
</div>
2011-05-17 18:50:41 +04:00
<div id="footer"><a href="http://twitter.com/#!/tanabe">created by @tanabe</a></div>
2011-05-16 20:26:21 +04:00
</body>
</html>