showdownjs/showdown

View on GitHub
src/subParsers/makemarkdown/strong.js

Summary

Maintainability
B
4 hrs
Test Coverage
showdown.subParser('makeMarkdown.strong', function (node, options, globals) {
  'use strict';

  var txt = '';
  if (node.hasChildNodes()) {
    txt += '**';
    var children = node.childNodes,
        childrenLength = children.length;
    for (var i = 0; i < childrenLength; ++i) {
      txt += showdown.subParser('makeMarkdown.node')(children[i], options, globals);
    }
    txt += '**';
  }
  return txt;
});