markdown.js 247 B

123456789
  1. // In level 3 they need to refactor the code from nw-card.js into a Service:
  2. angular.module('NoteWrangler').factory( 'markdown', function markdownFactory(){
  3. return {
  4. parse: function(text){
  5. return markdown.toHTML(text);
  6. }
  7. }
  8. });