lib/stmd.js
function(inlines) {
  var c = this.peek();
  var res;
  switch(c) {
  case '\n':
    res = this.parseNewline(inlines);
    break;
  case '\\':
    res = this.parseEscaped(inlines);
    break;
  case '`':
    res = this.parseBackticks(inlines);
    break;
  case '*':
  case '_':
    res = this.parseEmphasis(inlines);
    break;
  case '[':
    res = this.parseLink(inlines);
    break;
  case '!':
    res = this.parseImage(inlines);
    break;
  case '<':
    res = this.parseAutolink(inlines) ||
      this.parseHtmlTag(inlines);
    break;
  case '&':
    res = this.parseEntity(inlines);
    break;
  default:
  }
  return res || this.parseString(inlines);
}
function(inlines) {
  var c = this.peek();
  var res;
  switch(c) {
  case '\n':
    res = this.parseNewline(inlines);
    break;
  case '\\':
    res = this.parseEscaped(inlines);
    break;
  case '`':
    res = this.parseBackticks(inlines);
    break;
  case '*':
  case '_':
    res = this.parseEmphasis(inlines);
    break;
  case '[':
    res = this.parseLink(inlines);
    break;
  case '!':
    res = this.parseImage(inlines);
    break;
  case '<':
    res = this.parseAutolink(inlines) ||
      this.parseHtmlTag(inlines);
    break;
  case '&':
    res = this.parseEntity(inlines);
    break;
  default:
  }
  return res || this.parseString(inlines);
}
function ( inlines ) { var c = this . peek ( ) ; var res ; switch ( c ) { case '\n' : res = this . parseNewline ( inlines ) ; break ; case '\\' : res = this . parseEscaped ( inlines ) ; break ; case '`' : res = this . parseBackticks ( inlines ) ; break ; case '*' : case '_' : res = this . parseEmphasis ( inlines ) ; break ; case '[' : res = this . parseLink ( inlines ) ; break ; case '!' : res = this . parseImage ( inlines ) ; break ; case '<' : res = this . parseAutolink ( inlines ) || this . parseHtmlTag ( inlines ) ; break ; case '&' : res = this . parseEntity ( inlines ) ; break ; default : } return res || this . parseString ( inlines ) ; }
Parse the next inline element in subject, advancing subject position and adding the result to 'inlines'.
Parse the next inline element in subject advancing subject position and adding the result to inlines .