code: function(s, refmap) {
    this.subject = s;
    this.pos = 0;
    this.refmap = refmap || {};
    var inlines = [];
    while (this.parseInline(inlines)) ;
    return inlines;
  }
docs: Parse s as a list of inlines, using refmap to resolve references.