diff --git a/md/js/read-markdown-display-html.js b/md/js/read-markdown-display-html.js new file mode 100644 index 0000000..73d690e --- /dev/null +++ b/md/js/read-markdown-display-html.js @@ -0,0 +1,37 @@ + + var script = document.body.appendChild( document.createElement( 'script' ) ); + script.onload = init; + script.src = 'http://cdnjs.cloudflare.com/ajax/libs/showdown/0.3.1/showdown.min.js'; + + function init() { + + document.body.style.cssText = ' font: bold 12pt monospace; left: 0; margin: 0 auto; max-width:900px; position: absolute; right: 0; '; + + var info = document.body.appendChild( document.createElement( 'div' ) ); + + var fileName = location.hash ? location.hash.split( '#' )[1] : 'readme.md'; + document.title = document.title ? document.title : fileName; + + var xmlHttp = new XMLHttpRequest(); + xmlHttp.open( 'GET', fileName, true ); + xmlHttp.onreadystatechange = function() { + + info.innerHTML = xmlHttp.readyState === 4 ? new Showdown.converter().makeHtml( xmlHttp.responseText ) : ''; + + }; + + xmlHttp.send( null ); + + } + +/* + +View only on GitHub +[View as web page]( http://wikihouse.github.io/viewer-experiments/ "view the file as a web page." ) + + +View the following only on the web page + + + +*/ \ No newline at end of file diff --git a/md2html/index-all-in-one.html b/md2html/index-all-in-one.html new file mode 100644 index 0000000..2386f3a --- /dev/null +++ b/md2html/index-all-in-one.html @@ -0,0 +1,50 @@ + + + +Jaanga MD to HTML All in One + + + + + + \ No newline at end of file diff --git a/md2html/index.html b/md2html/index.html new file mode 100644 index 0000000..971f8ba --- /dev/null +++ b/md2html/index.html @@ -0,0 +1,10 @@ + + + +Jaanga MD to HTML + + + + + + \ No newline at end of file diff --git a/md2html/js/read-markdown-display-html.js b/md2html/js/read-markdown-display-html.js new file mode 100644 index 0000000..73d690e --- /dev/null +++ b/md2html/js/read-markdown-display-html.js @@ -0,0 +1,37 @@ + + var script = document.body.appendChild( document.createElement( 'script' ) ); + script.onload = init; + script.src = 'http://cdnjs.cloudflare.com/ajax/libs/showdown/0.3.1/showdown.min.js'; + + function init() { + + document.body.style.cssText = ' font: bold 12pt monospace; left: 0; margin: 0 auto; max-width:900px; position: absolute; right: 0; '; + + var info = document.body.appendChild( document.createElement( 'div' ) ); + + var fileName = location.hash ? location.hash.split( '#' )[1] : 'readme.md'; + document.title = document.title ? document.title : fileName; + + var xmlHttp = new XMLHttpRequest(); + xmlHttp.open( 'GET', fileName, true ); + xmlHttp.onreadystatechange = function() { + + info.innerHTML = xmlHttp.readyState === 4 ? new Showdown.converter().makeHtml( xmlHttp.responseText ) : ''; + + }; + + xmlHttp.send( null ); + + } + +/* + +View only on GitHub +[View as web page]( http://wikihouse.github.io/viewer-experiments/ "view the file as a web page." ) + + +View the following only on the web page + + + +*/ \ No newline at end of file diff --git a/md2html/readme.md b/md2html/readme.md new file mode 100644 index 0000000..61151fe --- /dev/null +++ b/md2html/readme.md @@ -0,0 +1,10 @@ +Markdown to HTML +=== + +View only on GitHub +[View as web page]( http://jaanga.github.io/libs/md2html/ "view the file as a web page." ) + + +View the following only on the web page + +