Skip to content

Instantly share code, notes, and snippets.

@nallerooth
Last active December 18, 2015 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nallerooth/26f3ea90593d355d4be1 to your computer and use it in GitHub Desktop.
Save nallerooth/26f3ea90593d355d4be1 to your computer and use it in GitHub Desktop.
Blog Test gist
var init = function () {
function renderMarkdown(srcId, dstId) {
var src = document.getElementById(srcId);
var dst = document.getElementById(dstId);
var process = null;
// Add some comments to this before deploy
process = function () {
dst.innerHTML = markdown.toHTML(src.value);
};
src.addEventListener('keyup', process, false);
}
// And we're DONE
renderMarkdown('articleContent', 'markdownPreview');
};
init();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment