Skip to content

Instantly share code, notes, and snippets.

@lfborjas
Created July 29, 2010 09:22
Show Gist options
  • Save lfborjas/497703 to your computer and use it in GitHub Desktop.
Save lfborjas/497703 to your computer and use it in GitHub Desktop.
$(function(){
var converter = new Showdown.converter();
function update_description_preview(){
$('#preview').html(converter.makeHtml($("#id_body").val()));
}
$("#id_body").keyup(function(){
update_description_preview();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment