tableCell.js 384 B

123456789101112131415
  1. showdown.subParser('makeMarkdown.tableCell', function (node, globals) {
  2. 'use strict';
  3. var txt = '';
  4. if (!node.hasChildNodes()) {
  5. return '';
  6. }
  7. var children = node.childNodes,
  8. childrenLength = children.length;
  9. for (var i = 0; i < childrenLength; ++i) {
  10. txt += showdown.subParser('makeMarkdown.node')(children[i], globals, true);
  11. }
  12. return txt.trim();
  13. });