react-markdown-table-ts 0.3.14 → 0.3.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -4112,6 +4112,7 @@ function calculateColumnWidths(inputDataRows, maxColumnCount, minWidth, canRepla
4112
4112
  }
4113
4113
  }
4114
4114
  }
4115
+ console.log('Calculated Column Widths:', columnWidths); // Debug log
4115
4116
  return columnWidths;
4116
4117
  }
4117
4118
  /**
@@ -4209,7 +4210,7 @@ function generateMarkdownTableString(inputData, columnAlignments, canAdjustColum
4209
4210
  var maxColumnCount = Math.max.apply(Math, __spreadArray([headerColumnCount], bodyColumnCounts, false));
4210
4211
  var columnWidths = canAdjustColumnWidths
4211
4212
  ? calculateColumnWidths(__spreadArray([inputData.inputTableHeader], inputData.inputTableBody, true), maxColumnCount, 3, // minWidth (you can change this value as needed)
4212
- true // canReplaceNewlines (set this to true or false based on your logic)
4213
+ replaceNewlines // Pass replaceNewlines here
4213
4214
  )
4214
4215
  : undefined;
4215
4216
  var markdownHeaderRow = formatMarkdownTableBody(maxColumnCount, inputData.inputTableHeader, columnAlignments, columnWidths, useTabs, replaceNewlines);