// Generated by CoffeeScript 1.6.2
var Fs, Path, emoji, emoji_folder, marked, taskLists;

Fs = require('fs');

Path = require('path');

marked = require('marked');

emoji = require('emoji-images');

taskLists = require('task-lists');

emoji_folder = Path.dirname(require.resolve('emoji-images')) + "/pngs";

module.exports = function(file, options, callback) {
  var conversion,
    _this = this;

  conversion = function(data) {
    var contents, emojified, mdToHtml;

    emojified = emoji(data, emoji_folder, 20);
    mdToHtml = marked(emojified);
    return contents = taskLists(mdToHtml);
  };
  marked.setOptions(options);
  if (options.isFile) {
    return Fs.readFile(file, "utf8", function(err, data) {
      return callback(null, conversion(data));
    });
  } else {
    return callback(null, conversion(file));
  }
};

@@ -41,16 +41,32 @@
 s, Path,
+ defaultOptions,
  emoji, 
@@ -66,26 +66,25 @@
 emoji, emoji
-_f
+F
 older, marke
@@ -244,26 +244,25 @@
 ts');%0A%0Aemoji
-_f
+F
 older = Path
@@ -315,16 +315,54 @@
 pngs%22;%0A%0A
+defaultOptions = %7B%0A  isFile: true%0A%7D;%0A%0A
 module.e
@@ -423,16 +423,22 @@
 version,
+ _ref,
 %0A    _th
@@ -558,10 +558,9 @@
 moji
-_f
+F
 olde
@@ -648,13 +648,133 @@
 l);%0A
-
   %7D;%0A
+  if (typeof options === 'function') %7B%0A    _ref = %5BdefaultOptions, options%5D, options = _ref%5B0%5D, callback = _ref%5B1%5D;%0A  %7D%0A
   ma

Update generated JS