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.esm.js CHANGED
@@ -4104,6 +4104,7 @@ function calculateColumnWidths(inputDataRows, maxColumnCount, minWidth, canRepla
4104
4104
  }
4105
4105
  }
4106
4106
  }
4107
+ console.log('Calculated Column Widths:', columnWidths); // Debug log
4107
4108
  return columnWidths;
4108
4109
  }
4109
4110
  /**
@@ -4201,7 +4202,7 @@ function generateMarkdownTableString(inputData, columnAlignments, canAdjustColum
4201
4202
  var maxColumnCount = Math.max.apply(Math, __spreadArray([headerColumnCount], bodyColumnCounts, false));
4202
4203
  var columnWidths = canAdjustColumnWidths
4203
4204
  ? calculateColumnWidths(__spreadArray([inputData.inputTableHeader], inputData.inputTableBody, true), maxColumnCount, 3, // minWidth (you can change this value as needed)
4204
- true // canReplaceNewlines (set this to true or false based on your logic)
4205
+ replaceNewlines // Pass replaceNewlines here
4205
4206
  )
4206
4207
  : undefined;
4207
4208
  var markdownHeaderRow = formatMarkdownTableBody(maxColumnCount, inputData.inputTableHeader, columnAlignments, columnWidths, useTabs, replaceNewlines);