Skip to content

Instantly share code, notes, and snippets.

@mspanish
Created August 16, 2013 03:59
Show Gist options
  • Save mspanish/6247198 to your computer and use it in GitHub Desktop.
Save mspanish/6247198 to your computer and use it in GitHub Desktop.
$.ajax({ url: "info.md", context: document.body, success: function(mdText){ //where text will be the text returned by the ajax call var converter = new Showdown.converter(); var htmlText = converter.makeHtml(mdText); $(".outputDiv").append(htmlText); //append this to a div with class outputDiv } });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment