Skip to content

Commit

Permalink
fix multiple solution file printing
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Feb 16, 2014
1 parent 4e22cba commit 640c14c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion workshopper.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,11 @@ Workshopper.prototype.exercisePass = function (mode, exercise) {
if (err)
return callback(err)

var filename = path.basename(file)

// code fencing is necessary for msee to render the solution as code
content = msee.parse('```js\n' + content + '\n```')
callback(null, { file: file, content: content })
callback(null, { name: filename, content: content })
})
}

Expand Down

0 comments on commit 640c14c

Please sign in to comment.