lib/doc/markdown.js
function() {
  this.colon = false;
  HelpDocument.apply(this, arguments);
  this.format = fmt.MARKDOWN_FORMAT;
  this.vanilla = true;
  this.useCustom = true;
  // disable columns
  this.use = false;
  var format = '* `%s`: %s';
  var overrides = {
    synopsis: '```synopsis\n%s\n```'
  }
  this.markdown = {};
  var conf = this.conf.markdown || {}, i, key;
  var formats = conf.formats || {};
  for(i = 0;i < this.sections.length;i++) {
    key = this.sections[i];
    this.markdown[key] = formats[key] || overrides[key] || format;
  }
}
function() {
  this.colon = false;
  HelpDocument.apply(this, arguments);
  this.format = fmt.MARKDOWN_FORMAT;
  this.vanilla = true;
  this.useCustom = true;
  // disable columns
  this.use = false;
  var format = '* `%s`: %s';
  var overrides = {
    synopsis: '```synopsis\n%s\n```'
  }
  this.markdown = {};
  var conf = this.conf.markdown || {}, i, key;
  var formats = conf.formats || {};
  for(i = 0;i < this.sections.length;i++) {
    key = this.sections[i];
    this.markdown[key] = formats[key] || overrides[key] || format;
  }
}
function ( ) { this . colon = false ; HelpDocument . apply ( this , arguments ) ; this . format = fmt . MARKDOWN_FORMAT ; this . vanilla = true ; this . useCustom = true ; // disable columns this . use = false ; var format = '* `%s`: %s' ; var overrides = { synopsis : '```synopsis\n%s\n```' } this . markdown = { } ; var conf = this . conf . markdown || { } , i , key ; var formats = conf . formats || { } ; for ( i = 0 ; i < this . sections . length ; i ++ ) { key = this . sections [ i ] ; this . markdown [ key ] = formats [ key ] || overrides [ key ] || format ; } }
Help document that outputs as markdown.
Help document that outputs as markdown .