code: function render(source, config) {
    const env = nunjucks.configure(config.templatesPath, { autoescape: false });
  
    config = config || {};
    config.raml2MdVersion = pjson.version;
  
    return raml2obj.parse(source).then((ramlObj) => {
      ramlObj.config = config;
  
      return new Promise((resolve) => {
        const result = env.render(config.template, ramlObj);
        if (config.processOutput) {
          resolve(config.processOutput(result));
        }
  
        return resolve(result);
      });
    });
  }
docs: /*
  The config object can contain the following keys and values:
  template: url to the main template (required)
  templatesPath: a folder containing the templates (optional, by default it's relative to your working directory)
  processOutput: function that takes data, return a promise (optional)