react-markdown-table-ts 0.6.1 → 0.6.3
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/README.md +64 -65
- package/dist/index.cjs.js +26 -34
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +26 -34
- package/dist/index.esm.js.map +1 -1
- package/dist/utils.d.ts +0 -9
- package/package.json +1 -1
package/dist/utils.d.ts
CHANGED
@@ -8,15 +8,6 @@ import { TableRow, InputData } from './types';
|
|
8
8
|
export declare function calculateColumnWidths(tableRows: readonly TableRow[], maxColumnCount: number): number[];
|
9
9
|
type Alignment = 'left' | 'right' | 'center' | 'none';
|
10
10
|
export declare function formatMarkdownRow(columnCount: number, currentRow: TableRow, columnAlignments: readonly Alignment[], columnWidths?: readonly number[], useTabs?: boolean, canReplaceNewlines?: boolean, hasPadding?: boolean): string;
|
11
|
-
/**
|
12
|
-
* Generates the alignment row for the Markdown table syntax.
|
13
|
-
* @param columnCount - The number of columns in the table.
|
14
|
-
* @param columnAlignments - Alignment settings for each column.
|
15
|
-
* @param columnWidths - Widths of each column.
|
16
|
-
* @param useTabs - Flag to use tabs between columns.
|
17
|
-
* @param hasPadding - Flag to add padding spaces around cell content.
|
18
|
-
* @returns The Markdown string for the alignment row.
|
19
|
-
*/
|
20
11
|
export declare function formatAlignmentRow(columnCount: number, columnAlignments: readonly ('left' | 'right' | 'center' | 'none')[], columnWidths?: readonly number[], useTabs?: boolean, hasPadding?: boolean): string;
|
21
12
|
export declare function generateMarkdownTableString(inputData: InputData, columnAlignments: readonly ('left' | 'right' | 'center' | 'none')[], canAdjustColumnWidths?: boolean, useTabs?: boolean, replaceNewlines?: boolean, hasPadding?: boolean): string;
|
22
13
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-markdown-table-ts",
|
3
|
-
"version": "0.6.
|
3
|
+
"version": "0.6.3",
|
4
4
|
"description": "A React component that converts structured data into Markdown table syntax and displays it within a `<pre>` tag.",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.esm.js",
|