Skip to content

Instantly share code, notes, and snippets.

@amcdnl
Last active December 11, 2015 03:48
Show Gist options
  • Save amcdnl/4540038 to your computer and use it in GitHub Desktop.
Save amcdnl/4540038 to your computer and use it in GitHub Desktop.

Automatic Markdown Converter for Steal

Automatically converts markdown files to HTML with Steal and Showdown

window.docee = {
	markdown: {}
};

steal.type("md text", function( options, success, error ) { 
	var converter = new Showdown.converter(); 
	options.text = converter.makeHtml(options.text);
	docee.markdown[options.id +''] = options.text;
	success(); 
});

steal('ui/tooltip/README.md', function(){ 
	$('.content').html(docee.markdown[url]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment