Markdown.js, Create a Live Markdown Editor to HTML, Books Memo UI

I want to integrate some good features into my another idea(a boot reading memo small system), markdown.js is what I need here for one feature. Integrating the code:

<!DOCTYPE html>

<script type="text/javascript"src=""></script>
blockquote {
border-left: #eee solid 5px;
padding-left: 20px;

ul li {
line-height: 20px;

code {
color: #D34B62;
background: #F6F6F6;


<textarea id="oriContent" style="height:400px;width:600px;" onkeyup="convert()"></textarea>
<div id="result"></div>
<script type="text/javascript">
function convert() {
var text = document.getElementById("oriContent").value;
var converter = new showdown.Converter();
var html = converter.makeHtml(text);
document.getElementById("result").innerHTML = html;