react-markdown-table-ts 0.3.7 → 0.3.8
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 +1 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -4129,6 +4129,7 @@ function formatMarkdownRow(columnCount, currentRow, columnAlignments, columnWidt
|
|
4129
4129
|
var alignment = (_b = adjustedAlignments[i]) !== null && _b !== void 0 ? _b : defaultAlignment;
|
4130
4130
|
var targetWidth = columnWidths ? columnWidths[i] : cell.length;
|
4131
4131
|
if (alignment === 'right') {
|
4132
|
+
cell = "".concat(canReplaceNewlines ? cell.replace(/\n/g, '<br>') : cell.replace(/\n/g, ' '));
|
4132
4133
|
markdownRow += "".concat(cell.padStart(targetWidth)).concat(useTabs ? '\t' : '', "|");
|
4133
4134
|
}
|
4134
4135
|
else if (alignment === 'center') {
|