// 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));
  }
};

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

Fs = require('fs');

Path = require('path');

marked = require('marked');

emoji = require('emoji-images');

taskLists = require('task-lists');

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

defaultOptions = {
  isFile: true
};

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

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

    emojified = emoji(data, emojiFolder, 20);
    mdToHtml = marked(emojified);
    return contents = taskLists(mdToHtml);
  };
  if (typeof options === 'function') {
    _ref = [defaultOptions, options], options = _ref[0], callback = _ref[1];
  }
  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));
  }
};

Update generated JS