src/turndown.js
/**
 * Reduces a DOM node down to its Markdown string equivalent
 * @private
 * @param {HTMLElement} parentNode The node to convert
 * @returns A Markdown representation of the node
 * @type String
 */
Reduces a DOM node down to its Markdown string equivalent
@private
@param {HTMLElement} parentNode The node to convert
@returns A Markdown representation of the node
@type String
Reduces a DOM node down to its Markdown string equivalent @private @param { HTMLElement } parentNode The node to convert @returns A Markdown representation of the node @type String
async function process (parentNode) {
  var self = this
  var result = ''
  var len = parentNode.childNodes.length
  var nodeIndex = 0
  while (nodeIndex < len) {
    var node = new Node(parentNode.childNodes[nodeIndex])
    var replacement = ''
    if (node.nodeType === 3) {
      replacement = node.isCode ? node.nodeValue : self.escape(node.nodeValue)
    } else if (node.nodeType === 1) {
      replacement = await replacementForNode.call(self, node)
    }
    result = join(result, replacement)
    nodeIndex++
  }
  return result
}
async function process ( parentNode ) { var self = this var result = '' var len = parentNode . childNodes . length var nodeIndex = 0 while ( nodeIndex < len ) { var node = new Node ( parentNode . childNodes [ nodeIndex ] ) var replacement = '' if ( node . nodeType === 3 ) { replacement = node . isCode ? node . nodeValue : self . escape ( node . nodeValue ) } else if ( node . nodeType === 1 ) { replacement = await replacementForNode . call ( self , node ) } result = join ( result , replacement ) nodeIndex ++ } return result }
Reduces a DOM node down to its Markdown string equivalent
 @private
 @param {HTMLElement} parentNode The node to convert
 @returns A Markdown representation of the node
 @type String
Reduces a DOM node down to its Markdown string equivalent @private @param { HTMLElement } parentNode The node to convert @returns A Markdown representation of the node @type String