lib/stmd.js
function(block) {
  switch(block.t) {
    case 'Paragraph':
    case 'SetextHeader':
    case 'ATXHeader':
      block.inline_content =
        this.inlineParser.parse(block.string_content.trim(), this.refmap);
      block.string_content = "";
      break;
    default:
      break;
  }

  if (block.children) {
    for (var i = 0; i < block.children.length; i++) {
      this.processInlines(block.children[i]);
    }
  }

}
function(block) {
  switch(block.t) {
    case 'Paragraph':
    case 'SetextHeader':
    case 'ATXHeader':
      block.inline_content =
        this.inlineParser.parse(block.string_content.trim(), this.refmap);
      block.string_content = "";
      break;
    default:
      break;
  }

  if (block.children) {
    for (var i = 0; i < block.children.length; i++) {
      this.processInlines(block.children[i]);
    }
  }

}
function ( block ) { switch ( block . t ) { case 'Paragraph' : case 'SetextHeader' : case 'ATXHeader' : block . inline_content = this . inlineParser . parse ( block . string_content . trim ( ) , this . refmap ) ; block . string_content = "" ; break ; default : break ; } if ( block . children ) { for ( var i = 0 ; i < block . children . length ; i ++ ) { this . processInlines ( block . children [ i ] ) ; } } }
Walk through a block & children recursively, parsing string content into inline content where appropriate.
Walk through a block & children recursively parsing string content into inline content where appropriate .