MCPcopy Create free account
hub / github.com/TruthHun/BookStack / convertTableCell

Function convertTableCell

static/word2md/mammoth.browser.js:384–398  ·  view source on GitHub ↗
(element, messages, options)

Source from the content-addressed store, hash-verified

382 }
383
384 function convertTableCell(element, messages, options) {
385 var tagName = options.isTableHeader ? "th" : "td";
386 var children = convertElements(element.children, messages, options);
387 var attributes = {};
388 if (element.colSpan !== 1) {
389 attributes.colspan = element.colSpan.toString();
390 }
391 if (element.rowSpan !== 1) {
392 attributes.rowspan = element.rowSpan.toString();
393 }
394
395 return [
396 Html.freshElement(tagName, attributes, [Html.forceWrite].concat(children))
397 ];
398 }
399
400 function convertCommentReference(reference, messages, options) {
401 return findHtmlPath(reference, htmlPaths.ignore).wrap(function() {

Callers

nothing calls this directly

Calls 1

convertElementsFunction · 0.70

Tested by

no test coverage detected